From e23ddd349bec3de1b08272b6cae2307fbb8b944f Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 1 Oct 2018 11:22:17 +0200 Subject: Add Nix derivation --- default.nix | 26 ++++++++++++++++++++++++++ shell.nix | 21 --------------------- 2 files changed, 26 insertions(+), 21 deletions(-) create mode 100644 default.nix delete mode 100644 shell.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..d2c031d --- /dev/null +++ b/default.nix @@ -0,0 +1,26 @@ +{ system ? builtins.currentSystem }: + +let + pkgs = import { inherit system; }; + mypkgs = import (fetchTarball "https://pkgs.kummerlaender.eu/nixexprs.tar.gz") { }; + +in pkgs.stdenv.mkDerivation { + name = "Overview"; + + src = ./.; + LANG = "en_US.UTF-8"; + + buildInputs = [ + pkgs.curl + pkgs.pandoc + pkgs.highlight + mypkgs.katex-wrapper + mypkgs.make-xslt + ]; + + installPhase = '' + make-xslt + mkdir $out + cp -Lr target/99_result/* $out + ''; +} diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 84601f8..0000000 --- a/shell.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ system ? builtins.currentSystem }: - -let - pkgs = import { inherit system; }; - mypkgs = import (fetchTarball "https://pkgs.kummerlaender.eu/nixexprs.tar.gz") { }; - -in pkgs.stdenv.mkDerivation rec { - name = "Overview"; - - buildInputs = [ - pkgs.curl - pkgs.pandoc - pkgs.highlight - mypkgs.katex-wrapper - mypkgs.make-xslt - ]; - - shellHook = '' - export NIX_SHELL_NAME="${name}" - ''; -} -- cgit v1.2.3