mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 09:48:09 +00:00
alist: use fetchzip to get web dist
This commit is contained in:
parent
f32b5f997f
commit
8ccddb6441
@ -2,7 +2,7 @@
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
fetchurl,
|
||||
fetchzip,
|
||||
fuse,
|
||||
stdenv,
|
||||
installShellFiles,
|
||||
@ -29,9 +29,9 @@ buildGoModule rec {
|
||||
find "$out" -name .git -print0 | xargs -0 rm -rf
|
||||
'';
|
||||
};
|
||||
web = fetchurl {
|
||||
web = fetchzip {
|
||||
url = "https://github.com/AlistGo/alist-web/releases/download/${webVersion}/dist.tar.gz";
|
||||
hash = "sha256-2ZgxWv9VROfXJIIU0Co7BKkjZr8KxQ+0eRsjgz6LVDo=";
|
||||
hash = "sha256-vc/pwu6TohHVydhMJ5xOXPLogV0WodT/YnGIXtIsLlk=";
|
||||
};
|
||||
|
||||
proxyVendor = true;
|
||||
@ -51,8 +51,7 @@ buildGoModule rec {
|
||||
|
||||
preConfigure = ''
|
||||
rm -rf public/dist
|
||||
tar -xzf ${web}
|
||||
mv -f dist public
|
||||
cp -r ${web} public/dist
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
|
Loading…
Reference in New Issue
Block a user