aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-10-01 11:22:17 +0200
committerAdrian Kummerlaender2018-10-01 11:22:17 +0200
commite23ddd349bec3de1b08272b6cae2307fbb8b944f (patch)
tree145c6450e170c2d67e3efe98c0adab7893a97a81
parent0867270079ac32fc15e4819aa08ac2b632d62567 (diff)
downloadOverview-e23ddd349bec3de1b08272b6cae2307fbb8b944f.tar
Overview-e23ddd349bec3de1b08272b6cae2307fbb8b944f.tar.gz
Overview-e23ddd349bec3de1b08272b6cae2307fbb8b944f.tar.bz2
Overview-e23ddd349bec3de1b08272b6cae2307fbb8b944f.tar.lz
Overview-e23ddd349bec3de1b08272b6cae2307fbb8b944f.tar.xz
Overview-e23ddd349bec3de1b08272b6cae2307fbb8b944f.tar.zst
Overview-e23ddd349bec3de1b08272b6cae2307fbb8b944f.zip
Add Nix derivation
-rw-r--r--default.nix (renamed from shell.nix)11
1 files changed, 8 insertions, 3 deletions
diff --git a/shell.nix b/default.nix
index 84601f8..d2c031d 100644
--- a/shell.nix
+++ b/default.nix
@@ -4,9 +4,12 @@ let
pkgs = import <nixpkgs> { inherit system; };
mypkgs = import (fetchTarball "https://pkgs.kummerlaender.eu/nixexprs.tar.gz") { };
-in pkgs.stdenv.mkDerivation rec {
+in pkgs.stdenv.mkDerivation {
name = "Overview";
+ src = ./.;
+ LANG = "en_US.UTF-8";
+
buildInputs = [
pkgs.curl
pkgs.pandoc
@@ -15,7 +18,9 @@ in pkgs.stdenv.mkDerivation rec {
mypkgs.make-xslt
];
- shellHook = ''
- export NIX_SHELL_NAME="${name}"
+ installPhase = ''
+ make-xslt
+ mkdir $out
+ cp -Lr target/99_result/* $out
'';
}