]> git.immae.eu Git - perso/Denise/aventuriers.git/commitdiff
Add shell.nix master
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 17 Apr 2022 17:47:38 +0000 (19:47 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 17 Apr 2022 17:47:38 +0000 (19:47 +0200)
shell.nix [new file with mode: 0644]

diff --git a/shell.nix b/shell.nix
new file mode 100644 (file)
index 0000000..a059658
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,24 @@
+let nixpkgs = import (builtins.fetchTarball {
+  name = "nixos-unstable";
+  url = "https://github.com/NixOS/nixpkgs/archive/8e2b14aceb1d40c7e8b84c03a7c78955359872bb.tar.gz";
+  sha256 = "0zzjpd9smr7rxzrdf6raw9kbj42fbvafxb5bz36lcxgv290pgsm8";
+}) { overlays = []; config = {}; };
+in
+{ pkgs ? nixpkgs }:
+let
+  copy = pkgs.writeScriptBin "copy" ''
+    #!${pkgs.stdenv.shell}
+
+    cp "$@"
+  '';
+in
+pkgs.mkShell {
+  buildInputs = [
+    pkgs.gnumake pkgs.calibre copy pkgs.inkscape_0
+    (pkgs.texlive.combine {
+      inherit (pkgs.texlive) scheme-small preprint fourier
+      collection-plaingeneric datetime fmtcount;
+    })
+  ];
+}
+