From bc3132f22f3470d8b1d8189e23393d3bb4577480 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Wed, 27 Apr 2022 14:44:33 -0400 Subject: List waifus Also use environment variables and new error types --- flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 4673ed5..9963206 100644 --- a/flake.nix +++ b/flake.nix @@ -9,12 +9,17 @@ system: let pkgs = nixpkgs.legacyPackages."${system}"; naersk-lib = naersk.lib."${system}"; + deps = with pkgs; [ + libvirt + ]; in rec { # `nix build` packages.waifud = naersk-lib.buildPackage { pname = "waifud"; root = ./.; + nativeBuildInputs = deps; + buildInputs = deps; }; defaultPackage = packages.waifud; @@ -71,7 +76,7 @@ # `nix develop` devShell = pkgs.mkShell { - nativeBuildInputs = with pkgs; [ rustc cargo ]; + nativeBuildInputs = with pkgs; [ rustc cargo ] ++ deps; }; } ); -- cgit v1.2.3