-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.nix
More file actions
41 lines (33 loc) · 874 Bytes
/
default.nix
File metadata and controls
41 lines (33 loc) · 874 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
}@args:
let
repo = fetchGit {
url = "git://git.devalot.com/edify.git";
rev = "5faef56f9d28dd8c1233d37edd7cd72af1fc03a2";
};
edify = import "${repo}/nix/builder.nix" args;
pkgs = edify.pkgs;
in
edify.mkDerivation rec {
name = "gitclass-${version}";
version = "1.5";
src = ./.;
# Tell TeX where we keep STY files:
TEXINPUTS = "${src}/vendor/gitdags:";
# Extra files to install:
extraFiles = [ "LICENSE" "README.md" "examples" "repos" ];
# Additional system dependencies:
buildInputs = with pkgs; [
# For running git commands during the build
gitMinimal
];
# Generate example repositories:
buildPhase = ''
"$SHELL" scripts/repo-all.sh
'';
# Extra install steps:
installPhase = ''
# Link archive to generic name (for the NixOS container I use):
( cd $out && ln -nfs ${name}.zip gitclass.zip )
'';
}