Compare commits

...

2 Commits

Author SHA1 Message Date
93d8144c50 idris tooling 2023-11-11 22:18:59 +01:00
17212228f8 move sax2 into seperate file 2023-11-11 22:18:40 +01:00
2 changed files with 17 additions and 14 deletions

View File

@ -1,19 +1,7 @@
{ pkgs, cornelis, cornelis-vim, agda, ... }: { pkgs, cornelis, cornelis-vim, agda, ... }:
let username = "rachel"; let username = "rachel";
homeDir = "/home/${username}"; homeDir = "/home/${username}";
SAX2 = pkgs.fetchurl { SAX2 = import ../shared/sax2.nix { inherit pkgs; };
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"
'';
};
hpkgs = pkgs.haskellPackages; hpkgs = pkgs.haskellPackages;
hls_wrapper = pkgs.writeScript "hls" '' hls_wrapper = pkgs.writeScript "hls" ''
export PATH="${hpkgs.haskell-language-server}/bin:$PATH" export PATH="${hpkgs.haskell-language-server}/bin:$PATH"
@ -90,6 +78,7 @@ in
sage sage
typst typst
ttyper ttyper
idris2
]; ];
stateVersion = "23.05"; stateVersion = "23.05";
}; };
@ -244,7 +233,7 @@ in
tmux-nvim tmux-nvim
cornelis-vim cornelis-vim
nvim-lspconfig nvim-lspconfig
magma-nvim-goose idris2-vim
]; ];
}; };

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"
'';
}