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:
Daniel Siepmann 2022-09-26 15:26:10 +02:00
parent 2c3d07650e
commit 8b2dba9f70
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 7 additions and 6 deletions

View file

@ -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"
'';
}

View file

@ -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 = [