-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
89 lines (81 loc) · 2.31 KB
/
flake.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
inputs = {
flake-compat = {
url = github:edolstra/flake-compat;
flake = false;
};
flake-utils.url = github:numtide/flake-utils;
nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
nix-filter.url = github:numtide/nix-filter;
};
outputs = { self, nixpkgs, flake-compat, flake-utils, nix-filter, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
multiset = import ./nix/multiset.nix {
inherit pkgs;
path = ./.;
};
paper = import ./nix/paper.nix {
inherit pkgs;
doc = "tex/Multiset.tex";
src = nix-filter.lib.filter {
root = ./.;
name = "tex-cubical-multiset";
include = [ "doc" "tex" ];
};
};
archive = pkgs.callPackage ./nix/archive.nix {
src = nix-filter.lib.filter {
root = ./.;
name = "archive-cubical-multiset";
include = [
"README.md"
"README.agda"
"LICENSE"
# The Agda library
"Multiset/"
"Multiset.agda-lib"
# Building with Nix
"nix"
(nix-filter.lib.matchExt "nix")
"flake.lock"
];
};
};
submission = pkgs.callPackage ./nix/submission.nix {
src = nix-filter.lib.filter {
root = ./.;
name = "submission-cubical-multiset";
include = [
# TeX main file
"tex/Multiset.tex"
# Bibliography (one is a symlink)
"doc/Multiset.bib"
"tex/Multiset.bib"
# TeX style and document class
"tex/multiset.sty"
"tex/lipics-v2021.cls"
# Supplementary graphics
"tex/cc-by.pdf"
"tex/orcid.pdf"
"tex/lipics-logo-bw.pdf"
# latexmk configuration
"tex/latexmkrc"
];
};
};
in
{
packages = {
inherit multiset paper archive submission;
default = multiset;
};
devShells.default = pkgs.mkShell {
inputsFrom = [ multiset ];
};
}
);
}