diff options
Diffstat (limited to 'package.nix')
-rw-r--r-- | package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/package.nix b/package.nix new file mode 100644 index 0000000..56561f6 --- /dev/null +++ b/package.nix @@ -0,0 +1,40 @@ +{ + lib, + cjson, + highs, + makeWrapper, + meson, + ninja, + nix-eval-jobs, + pkg-config, + stdenv, + uthash, +}: +stdenv.mkDerivation (finalAttrs: { + name = "evanix"; + + src = ./.; + nativeBuildInputs = [ + uthash + meson + ninja + pkg-config + makeWrapper + ]; + buildInputs = [ + cjson + highs + ]; + + mesonFlags = [ (lib.mesonOption "NIX_EVAL_JOBS_PATH" (lib.getExe nix-eval-jobs)) ]; + + meta = { + homepage = "https://git.sinanmohd.com/evanix"; + + license = lib.licenses.gpl3; + platforms = lib.platforms.all; + mainProgram = "evanix"; + + maintainers = with lib.maintainers; [ sinanmohd ]; + }; +}) |