mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
packages(fluent-icons): Simplify with fetchzip
This commit is contained in:
parent
c6c49b62b5
commit
713589f646
@ -1,34 +1,22 @@
|
||||
{ stdenvNoCC
|
||||
, fetchurl
|
||||
, unar
|
||||
, fetchzip
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "fluent-icons";
|
||||
version = "2024-01-02";
|
||||
|
||||
src = fetchurl {
|
||||
name = "Fluent Icons.zip";
|
||||
src = fetchzip {
|
||||
url = "https://files.catbox.moe/1we56t.zip";
|
||||
hash = "sha256-J530v9QRGv/c0PBYcCVpGSgqvirlx4eQzsP+Kqhft8A=";
|
||||
hash = "sha256-gs33iDv+u6O03a+/QvDtKt/aHduZww4F3Fm3F40d1GI=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unar ];
|
||||
|
||||
unpackPhase = /* bash */ ''
|
||||
runHook preUnpack
|
||||
|
||||
cp "$src" $(stripHash "$src")
|
||||
unar $(stripHash "$src")
|
||||
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
installPhase = /* bash */ ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/eww
|
||||
cp -r */ $out/share/eww
|
||||
mkdir -p $out
|
||||
cp -r * $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user