From a5fe6e051692075b40ecdaeef4121d4286105213 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 17 Apr 2022 19:47:38 +0200 Subject: [PATCH] Add shell.nix --- shell.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 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; + }) + ]; +} + -- 2.41.0