summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2022-04-17 19:47:38 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2022-04-17 19:47:38 +0200
commita5fe6e051692075b40ecdaeef4121d4286105213 (patch)
treeb0a74f998350198f97b3cc0f1edb1bd6f8efa14b
parent388082e3adfae02abcaf6eda409caee79b63d014 (diff)
downloadaventuriers-master.tar.gz
aventuriers-master.tar.zst
aventuriers-master.zip
Add shell.nixHEADmaster
-rw-r--r--shell.nix24
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 @@
1let 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 = {}; };
6in
7{ pkgs ? nixpkgs }:
8let
9 copy = pkgs.writeScriptBin "copy" ''
10 #!${pkgs.stdenv.shell}
11
12 cp "$@"
13 '';
14in
15pkgs.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