summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/override/iosevka-tv-1.nix
blob: 99b82d514a112efd531e3bd314c728688e1d21f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
self: super:

let
  prebuilt =
    self.stdenv.mkDerivation rec {
      pname = "iosevka-tv-1";
      version = "15.6.3";
      src = self.fetchurl {
        urls = [
          "https://c.krebsco.de/iosevka-tv-1-${version}.tar.gz"
          "https://ni.krebsco.de/~tv/mirrors/iosevka/iosevka-tv-1-${version}.tar.gz"
        ];
        hash = "sha256-88OfNUbuNbGx3hFzYZ+gAYgOWZ+A8IYo45I1n/qOyhM=";
      };
      installPhase = ''
        mkdir $out
        mv * $out/
      '';
    };
in

if super.iosevka.version == prebuilt.version then
  prebuilt

else
  super.iosevka-tv-1