diff options
-rw-r--r-- | flake.nix | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/flake.nix b/flake.nix index 3500c80..aa094e1 100644 --- a/flake.nix +++ b/flake.nix @@ -6,33 +6,29 @@ }; outputs = { self, flake-utils, naersk, nixpkgs }: - #flake-utils.lib.eachDefaultSystem (system: - let - pkgs = (import nixpkgs) { - # inherit system; - system = "x86_64-linux"; - }; - - naersk' = pkgs.callPackage naersk {}; - - in rec { - # For `nix build` & `nix run`: - defaultPackage = naersk'.buildPackage { - src = ./.; - }; + let + pkgs = (import nixpkgs) { + system = "x86_64-linux"; + }; - # For `nix develop` (optional, can be skipped): - devShell = pkgs.mkShell { - nativeBuildInputs = with pkgs; [ rustc cargo ]; - }; + naersk' = pkgs.callPackage naersk {}; + + in rec { + packages."x86_64-linux".vokobe = naersk'.buildPackage { + src = ./.; + }; + + # For `nix build` & `nix run`: + defaultPackage = packages."x86_64-linux".vokobe; - # hydraJobs."<attr>"."<system>" = derivation; + # For `nix develop` (optional, can be skipped): + devShell = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ rustc cargo ]; + }; - hydraJobs = { - build."x86_64-linux" = naersk'.buildPackage { - src = ./.; - }; - }; + # hydraJobs."<attr>"."<system>" = derivation; + hydraJobs = { + build."x86_64-linux" = packages."x86_64-linux".vokobe; }; - # ); + }; } \ No newline at end of file |