aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-10-02 19:04:21 +0200
committerAdrian Kummerlaender2018-10-02 19:04:21 +0200
commitd4f3c3d2f61616e09d01cc927ba0dbdc393d25a0 (patch)
tree0a4981f97da1ebcd03bf327cb477eb42f78bb8b5
parentc6642afaa2d8af9bcde6a805666dfe3566ce4c6e (diff)
downloadInputXSLT-d4f3c3d2f61616e09d01cc927ba0dbdc393d25a0.tar
InputXSLT-d4f3c3d2f61616e09d01cc927ba0dbdc393d25a0.tar.gz
InputXSLT-d4f3c3d2f61616e09d01cc927ba0dbdc393d25a0.tar.bz2
InputXSLT-d4f3c3d2f61616e09d01cc927ba0dbdc393d25a0.tar.lz
InputXSLT-d4f3c3d2f61616e09d01cc927ba0dbdc393d25a0.tar.xz
InputXSLT-d4f3c3d2f61616e09d01cc927ba0dbdc393d25a0.tar.zst
InputXSLT-d4f3c3d2f61616e09d01cc927ba0dbdc393d25a0.zip
Add Nix derivation
-rw-r--r--default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..38f3d65
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,25 @@
+{ system ? builtins.currentSystem }:
+
+let
+ pkgs = import <nixpkgs> { inherit system; };
+ stdenv = pkgs.stdenv;
+
+in stdenv.mkDerivation rec {
+ name = "input-xslt";
+
+ src = pkgs.lib.cleanSource ./.;
+
+ buildInputs = with pkgs; [
+ cmake boost xalanc xercesc discount
+ ];
+
+ meta = with stdenv.lib; {
+ description = "InputXSLT";
+ homepage = https://tree.kummerlaender.eu/projects/xslt/input_xslt/;
+ license = stdenv.lib.licenses.asl20;
+ };
+
+ shellHook = ''
+ export NIX_SHELL_NAME="${name}"
+ '';
+}