aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2023-12-18 22:49:47 +0100
committerMax Audron <audron@cocaine.farm>2023-12-18 22:49:47 +0100
commitff3bf42ed64cb738aa91009c4939ff02e5da50ab (patch)
treeddb689a7303981da0bfa985a7e7cfeeb4c568296 /flake.nix
parentmark network fields as pub (diff)
update nix flake deps
Diffstat (limited to '')
-rw-r--r--flake.nix21
1 files changed, 15 insertions, 6 deletions
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
+ ];
};
});
}