Update Nix flake and its lockfile (#500)

This commit is contained in:
weird
2025-09-03 01:10:16 -04:00
committed by GitHub
parent 745f547904
commit 7b1dc93f3a
2 changed files with 38 additions and 16 deletions

View File

@@ -8,13 +8,21 @@
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay, ... }:
flake-utils.lib.eachDefaultSystem (system:
outputs =
{
self,
nixpkgs,
flake-utils,
rust-overlay,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
# We only need the nightly overlay in the devShell because .rs files are formatted with nightly.
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { inherit system overlays; };
rustNightly = pkgs.rust-bin.nightly."2024-12-12".default;
rustNightly = pkgs.rust-bin.nightly."2025-08-31".default;
in
with pkgs;
{
@@ -26,14 +34,27 @@
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [ AppKit Security Cocoa ]);
buildInputs =
[ openssl ]
++ lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[
AppKit
Security
Cocoa
]
);
};
devShell = mkShell {
buildInputs = [
(rustNightly.override {
extensions = [ "rust-src" "rust-analyzer-preview" "rustfmt" "clippy" ];
extensions = [
"rust-src"
"rust-analyzer-preview"
"rustfmt"
"clippy"
];
})
pkg-config
cargo-tarpaulin
@@ -41,5 +62,6 @@
sqlite
];
};
});
}
);
}