From 7d41e83b4f62c8f79be4a0e984a11941d55e66dc Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 29 Dec 2022 11:27:27 +0100 Subject: Replace default.nix by flake --- flake.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..76820d8 --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + description = "InputXSLT"; + + inputs = { + nixpkgs.url = github:NixOS/nixpkgs/nixos-21.05; + }; + + outputs = { self, nixpkgs, ... }: { + defaultPackage.x86_64-linux = let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + + in pkgs.stdenv.mkDerivation rec { + name = "input-xslt"; + + src = pkgs.lib.cleanSource ./.; + + buildInputs = with pkgs; [ + cmake boost xalanc xercesc discount + ]; + + meta = { + description = "InputXSLT"; + homepage = https://tree.kummerlaender.eu/projects/xslt/input_xslt/; + license = pkgs.lib.licenses.asl20; + }; + }; + }; +} -- cgit v1.2.3