move sax2 into seperate file

This commit is contained in:
Rachel Lambda Samuelsson 2023-11-11 22:18:40 +01:00
parent 10130114cd
commit 17212228f8
2 changed files with 15 additions and 13 deletions

View File

@ -1,19 +1,7 @@
{ pkgs, cornelis, cornelis-vim, agda, ... }:
let username = "rachel";
homeDir = "/home/${username}";
SAX2 = pkgs.fetchurl {
name = "SAX2";
url = "https://abrudz.github.io/SAX2/SAX2.ttf";
sha256 = "sha256-DgvDWXO2fnKZNu9EvQOq8GNMTU3PUdp85+/0ZHdRXZc=";
recursiveHash = true;
downloadToTemp = true;
postFetch = ''
mkdir -p "$out/share/fonts/truetype"
mv "$downloadedFile" "$out/share/fonts/truetype/SAX2.ttf"
'';
};
SAX2 = import ../shared/sax2.nix { inherit pkgs; };
hpkgs = pkgs.haskellPackages;
hls_wrapper = pkgs.writeScript "hls" ''
export PATH="${hpkgs.haskell-language-server}/bin:$PATH"

14
shared/sax2.nix Normal file
View File

@ -0,0 +1,14 @@
{ pkgs, ... }:
pkgs.fetchurl {
name = "SAX2";
url = "https://abrudz.github.io/SAX2/SAX2.ttf";
sha256 = "sha256-DgvDWXO2fnKZNu9EvQOq8GNMTU3PUdp85+/0ZHdRXZc=";
recursiveHash = true;
downloadToTemp = true;
postFetch = ''
mkdir -p "$out/share/fonts/truetype"
mv "$downloadedFile" "$out/share/fonts/truetype/SAX2.ttf"
'';
}