From 19f7eac1ec285ab9d0b76b4c10e02c2e40dec8be Mon Sep 17 00:00:00 2001 From: SomeoneSerge Date: Wed, 31 Jul 2024 12:57:01 +0000 Subject: .#evanix: make callPackage-able --- flake.nix | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 3505d12..14108d1 100644 --- a/flake.nix +++ b/flake.nix @@ -55,36 +55,7 @@ { system, pkgs }: { default = self.packages.${system}.evanix; - evanix = pkgs.stdenv.mkDerivation (finalAttrs: { - name = "evanix"; - - src = ./.; - nativeBuildInputs = with pkgs; [ - uthash - meson - ninja - pkg-config - makeWrapper - ]; - buildInputs = with pkgs; [ - cjson - highs - ]; - - mesonFlags = [ - (lib.mesonOption "NIX_EVAL_JOBS_PATH" (lib.getExe pkgs.nix-eval-jobs)) - ]; - - meta = { - homepage = "https://git.sinanmohd.com/evanix"; - - license = lib.licenses.gpl3; - platforms = supportedSystems; - mainProgram = "evanix"; - - maintainers = with lib.maintainers; [ sinanmohd ]; - }; - }); + evanix = pkgs.callPackage ./package.nix { }; evanix-py = pkgs.python3Packages.callPackage ./python-package.nix { }; pythonWithEvanix = -- cgit v1.2.3