diff --git a/flake.nix b/flake.nix index b6b9b7ec..40b04727 100644 --- a/flake.nix +++ b/flake.nix @@ -36,7 +36,7 @@ components = [ "vlsisapd" "lefdef" "bootstrap" "hurricane" "crlcore" "cumulus" "flute" "etesian" "anabatic" "coloquinte" - "katana" "bora" "equinox" + "katana" "bora" "equinox" "knik" ]; in diff --git a/nix/knik.nix b/nix/knik.nix new file mode 100644 index 00000000..73aee664 --- /dev/null +++ b/nix/knik.nix @@ -0,0 +1,22 @@ +{ version, meta }: + +{ lib, stdenv, cmake, ninja, python2, boost +, coriolis-bootstrap, coriolis-vlsisapd, coriolis-hurricane +, coriolis-crlcore, coriolis-flute, qt4 }: + +let boostWithPython = boost.override { enablePython = true; python = python2; }; in + +stdenv.mkDerivation { + pname = "coriolis-knik"; + + src = ../knik; + + buildInputs = [ + python2 boostWithPython coriolis-bootstrap + coriolis-vlsisapd coriolis-hurricane coriolis-crlcore + coriolis-flute qt4 + ]; + nativeBuildInputs = [ cmake ninja ]; + + inherit version meta; +}