From ff3bf42ed64cb738aa91009c4939ff02e5da50ab Mon Sep 17 00:00:00 2001 From: Max Audron Date: Mon, 18 Dec 2023 22:49:47 +0100 Subject: update nix flake deps --- flake.nix | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index e2336c1..c0f2edd 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = "Build a cargo project"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; crane = { url = "github:ipetkov/crane"; @@ -61,7 +61,8 @@ # .cargo/config.toml already captured above isCargoConfig = parentDir == ".cargo" && base == "config"; - in type == "directory" || matchesSuffix || isCargoFile + in + type == "directory" || matchesSuffix || isCargoFile || isCargoConfig; }; @@ -73,10 +74,9 @@ # artifacts from above. libquassel = craneLib.buildPackage { inherit cargoArtifacts src; - - # nativeBuildInputs = [ ./README.md ]; }; - in { + in + { checks = { # Build the crate as part of `nix flake check` for convenience inherit libquassel; @@ -125,7 +125,16 @@ inputsFrom = builtins.attrValues self.checks; # Extra inputs can be added here - nativeBuildInputs = with pkgs; [ rustToolchain ]; + nativeBuildInputs = with pkgs; [ + rustToolchain + pkg-config + glib + cairo + pango + atk + gdk-pixbuf + gtk3 + ]; }; }); } -- cgit v1.2.3