From d4f3c3d2f61616e09d01cc927ba0dbdc393d25a0 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 2 Oct 2018 19:04:21 +0200 Subject: Add Nix derivation --- default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 default.nix 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 { 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}" + ''; +} -- cgit v1.2.3