feat: added derivations

This commit is contained in:
Artur Manuel 2024-10-18 17:59:58 +01:00
commit 9c64f21bbc
4 changed files with 26 additions and 2 deletions

View file

@ -6,6 +6,7 @@
basicTextColor = "#f2f4f8";
};
};
fairfax = prev.callPackage ./derivations/fairfax.nix {};
};
perSystem = {
pkgs,
@ -20,7 +21,7 @@
};
packages = {
inherit (pkgs) i-found-my-sddm-theme;
inherit (pkgs) i-found-my-sddm-theme fairfax;
};
};
}

View file

@ -0,0 +1,21 @@
{
stdenvNoCC,
fetchzip,
lib,
}:
stdenvNoCC.mkDerivation {
pname = "fairfaxHD";
version = "20240601";
src = lib.cleanSourceWith {
filter = _path: type: type == "regular";
src = fetchzip {
url = "https://github.com/kreativekorp/open-relay/releases/download/2024-06-01/FairfaxHD.zip";
hash = "sha256-kwdpWFOYhXt0HNqfWP3EeKYhJWgKsRs7cAbzHEasM80=";
stripRoot = true;
};
};
installPhase = ''
mkdir -p $out/share/fonts
cp *.ttf $out/share/fonts
'';
}