diff options
-rw-r--r-- | default.nix | 25 |
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}" + ''; +} |