-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
75 lines (64 loc) · 1.53 KB
/
default.nix
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
let
fetchTarballFromGitHub =
{ owner, repo, rev, sha256, ... }:
builtins.fetchTarball {
url = "https://github.com/${owner}/${repo}/tarball/${rev}";
inherit sha256;
};
fromJSONFile = path: builtins.fromJSON (builtins.readFile path);
in
{ nixpkgs ? fetchTarballFromGitHub (fromJSONFile ./_nix/nixpkgs-src.json)
, nur ? fetchTarballFromGitHub (fromJSONFile ./_nix/nur.json) }:
with import nixpkgs {
overlays = [
(import nur {}).repos.yurrriq.overlays.nur
(self: super: {
xelatex-noweb = (super.texlive.combine {
inherit (super) noweb;
inherit (super.texlive) scheme-small
datetime
dirtytalk
fmtcount
framed
fvextra
hardwrap
ifplatform
latexmk
minted
titlesec
todonotes
tufte-latex
xetex
xstring;
});
})
];
};
stdenv.mkDerivation rec {
pname = "knrc";
version = builtins.readFile ./VERSION;
name = "${pname}-${version}";
src = ./.;
# makeFlags = "-B";
outputs = [ "out" "docs" "dev" ];
FONTCONFIG_FILE = makeFontsConf {
fontDirectories = [ iosevka ];
};
nativeBuildInputs = with pkgs; [
doxygen
gcc
gdb
indent
iosevka
noweb
python36Packages.pygments
which
xelatex-noweb
];
meta = with stdenv.lib; {
description = "Working through the K&R C book";
homepage = https://github.com/yurrriq/knrc;
license = licenses.wtfpl;
maintainers = with maintainers; [ yurrriq ];
};
}