tv iosevka: use fetchzip

This commit is contained in:
tv 2023-01-27 16:17:22 +01:00
parent 6a5b4c73b0
commit 0800933180
2 changed files with 26 additions and 38 deletions

View File

@ -1,26 +1,20 @@
self: super: self: super:
let let
prebuilt = srcpkg = super.iosevka-tv-1;
self.stdenv.mkDerivation rec { binpkg = self.fetchzip {
pname = "iosevka-tv-1"; inherit (srcpkg) pname version;
version = "15.6.3"; stripRoot = false;
src = self.fetchurl { hash = "sha256-QIuTS70vUQSvDDXjY4uI6SCcu1XT4HjvzpthvrNX4h0=";
urls = [ urls = [
"https://c.krebsco.de/iosevka-tv-1-${version}.tar.gz" "https://c.krebsco.de/${srcpkg.name}.tar.gz"
"https://ni.krebsco.de/~tv/mirrors/iosevka/iosevka-tv-1-${version}.tar.gz" "https://ni.krebsco.de/~tv/mirrors/iosevka/${srcpkg.name}.tar.gz"
]; ];
hash = "sha256-88OfNUbuNbGx3hFzYZ+gAYgOWZ+A8IYo45I1n/qOyhM="; };
};
installPhase = ''
mkdir $out
mv * $out/
'';
};
in in
if super.iosevka.version == prebuilt.version then if srcpkg.version == binpkg.version then
prebuilt binpkg
else else
super.iosevka-tv-1 srcpkg

View File

@ -1,26 +1,20 @@
self: super: self: super:
let let
prebuilt = srcpkg = super.iosevka-tv-2;
self.stdenv.mkDerivation rec { binpkg = self.fetchzip {
pname = "iosevka-tv-2"; inherit (srcpkg) pname version;
version = "15.6.3"; stripRoot = false;
src = self.fetchurl { hash = "sha256-PuIrW1ftYD5PW4du6gq1XpUM3v0potwmj+vAxJImF/A=";
urls = [ urls = [
"https://c.krebsco.de/iosevka-tv-2-${version}.tar.gz" "https://c.krebsco.de/${srcpkg.name}.tar.gz"
"https://ni.krebsco.de/~tv/mirrors/iosevka/iosevka-tv-2-${version}.tar.gz" "https://ni.krebsco.de/~tv/mirrors/iosevka/${srcpkg.name}.tar.gz"
]; ];
hash = "sha256-W2bOlM0dYKAt+k2OpNJsNx6/hWEItJ2Tob8thtJJ1BA="; };
};
installPhase = ''
mkdir $out
mv * $out/
'';
};
in in
if super.iosevka.version == prebuilt.version then if srcpkg.version == binpkg.version then
prebuilt binpkg
else else
super.iosevka-tv-2 srcpkg