Update phpactor, use fetchurl instead of fetchzip
Accordingly to help in https://discourse.nixos.org/t/fetchzip-results-in-do-not-know-how-to-unpack-source-archive-due-to-wrong-nix-store-path/22014
This commit is contained in:
parent
2c3d07650e
commit
8b2dba9f70
|
@ -22,9 +22,10 @@ writeShellApplication {
|
|||
git clone --depth 1 https://github.com/phpactor/phpactor.git .
|
||||
composer install -o --no-dev
|
||||
version=$(git show -s --format=%H)
|
||||
rm -rf .git/
|
||||
cd /tmp
|
||||
tar -czf "phpactor-$version.tar.gz" phpactor-build
|
||||
tar -czf "phpactor-$version.tar.gz" /tmp/phpactor-build/*
|
||||
rsync -vaz "phpactor-$version.tar.gz" daniel-siepmann.de:webs/daniel-siepmann.de/htdocs/public/fileadmin/
|
||||
rm -rf /tmp/phpactor-build
|
||||
rm -rf /tmp/phpactor-build "phpactor-$version.tar.gz"
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
vimUtils,
|
||||
fetchzip,
|
||||
fetchurl,
|
||||
makeWrapper,
|
||||
lib,
|
||||
php80,
|
||||
|
@ -10,10 +10,10 @@
|
|||
|
||||
vimUtils.buildVimPluginFrom2Nix rec {
|
||||
pname = "phpactor";
|
||||
version = "873fa51ae06eb3dd568ac02c111503b88b76e723";
|
||||
src = fetchzip {
|
||||
version = "3e7cb48b0ca429f92bcd57c236c39f170e9d23b1";
|
||||
src = fetchurl {
|
||||
url = "https://daniel-siepmann.de/fileadmin/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-WTjxYD0iduV+oHyDCNnL8YOg9qTYGo9vZyDATx0O+no=";
|
||||
sha256 = "sha256-JX6aLuzmJ4rrcG0FNgzt2zITmnRrpitUI591oPn+fhY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
Loading…
Reference in a new issue