diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2022-04-17 19:47:38 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2022-04-17 19:47:38 +0200 |
commit | a5fe6e051692075b40ecdaeef4121d4286105213 (patch) | |
tree | b0a74f998350198f97b3cc0f1edb1bd6f8efa14b | |
parent | 388082e3adfae02abcaf6eda409caee79b63d014 (diff) | |
download | aventuriers-master.tar.gz aventuriers-master.tar.zst aventuriers-master.zip |
-rw-r--r-- | shell.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..a059658 --- /dev/null +++ b/shell.nix | |||
@@ -0,0 +1,24 @@ | |||
1 | let nixpkgs = import (builtins.fetchTarball { | ||
2 | name = "nixos-unstable"; | ||
3 | url = "https://github.com/NixOS/nixpkgs/archive/8e2b14aceb1d40c7e8b84c03a7c78955359872bb.tar.gz"; | ||
4 | sha256 = "0zzjpd9smr7rxzrdf6raw9kbj42fbvafxb5bz36lcxgv290pgsm8"; | ||
5 | }) { overlays = []; config = {}; }; | ||
6 | in | ||
7 | { pkgs ? nixpkgs }: | ||
8 | let | ||
9 | copy = pkgs.writeScriptBin "copy" '' | ||
10 | #!${pkgs.stdenv.shell} | ||
11 | |||
12 | cp "$@" | ||
13 | ''; | ||
14 | in | ||
15 | pkgs.mkShell { | ||
16 | buildInputs = [ | ||
17 | pkgs.gnumake pkgs.calibre copy pkgs.inkscape_0 | ||
18 | (pkgs.texlive.combine { | ||
19 | inherit (pkgs.texlive) scheme-small preprint fourier | ||
20 | collection-plaingeneric datetime fmtcount; | ||
21 | }) | ||
22 | ]; | ||
23 | } | ||
24 | |||