Commit 7b1dc93f3a

7b1dc93f3a01f4e8b138922a27bb3ce60d7be1f9

parent: 745f547904

Unregistered key

weird <weirdrock@riseup.net> · 2025-09-03 05:10 UTC
committer: <noreply@github.com>

Update Nix flake and its lockfile (#500)

Layout: unified · split

flake.lock +9 −9
@@ -20,11 +20,11 @@
20 }, 20 },
21 "nixpkgs": { 21 "nixpkgs": {
22 "locked": { 22 "locked": {
23 "lastModified": 1736883708, 23 "lastModified": 1756542300,
24 "narHash": "sha256-uQ+NQ0/xYU0N1CnXsa2zghgNaOPxWpMJXSUJJ9W7140=", 24 "narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=",
25 "owner": "nixos", 25 "owner": "nixos",
26 "repo": "nixpkgs", 26 "repo": "nixpkgs",
27 "rev": "eb62e6aa39ea67e0b8018ba8ea077efe65807dc8", 27 "rev": "d7600c775f877cd87b4f5a831c28aa94137377aa",
28 "type": "github" 28 "type": "github"
29 }, 29 },
30 "original": { 30 "original": {
@@ -36,11 +36,11 @@
36 }, 36 },
37 "nixpkgs_2": { 37 "nixpkgs_2": {
38 "locked": { 38 "locked": {
39 "lastModified": 1736320768, 39 "lastModified": 1744536153,
40 "narHash": "sha256-nIYdTAiKIGnFNugbomgBJR+Xv5F1ZQU+HfaBqJKroC0=", 40 "narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=",
41 "owner": "NixOS", 41 "owner": "NixOS",
42 "repo": "nixpkgs", 42 "repo": "nixpkgs",
43 "rev": "4bc9c909d9ac828a039f288cf872d16d38185db8", 43 "rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11",
44 "type": "github" 44 "type": "github"
45 }, 45 },
46 "original": { 46 "original": {
@@ -62,11 +62,11 @@
62 "nixpkgs": "nixpkgs_2" 62 "nixpkgs": "nixpkgs_2"
63 }, 63 },
64 "locked": { 64 "locked": {
65 "lastModified": 1736994333, 65 "lastModified": 1756694554,
66 "narHash": "sha256-v4Jrok5yXsZ6dwj2+2uo5cSyUi9fBTurHqHvNHLT1XA=", 66 "narHash": "sha256-z/Iy4qvcMqzhA2IAAg71Sw4BrMwbBHvCS90ZoPLsnIk=",
67 "owner": "oxalica", 67 "owner": "oxalica",
68 "repo": "rust-overlay", 68 "repo": "rust-overlay",
69 "rev": "848db855cb9e88785996e961951659570fc58814", 69 "rev": "b29e5365120f344fe7161f14fc9e272fcc41ee56",
70 "type": "github" 70 "type": "github"
71 }, 71 },
72 "original": { 72 "original": {
flake.nix +29 −7
@@ -8,13 +8,21 @@
8 rust-overlay.url = "github:oxalica/rust-overlay"; 8 rust-overlay.url = "github:oxalica/rust-overlay";
9 }; 9 };
10 10
11 outputs = { self, nixpkgs, flake-utils, rust-overlay, ... }: 11 outputs =
12 flake-utils.lib.eachDefaultSystem (system: 12 {
13 self,
14 nixpkgs,
15 flake-utils,
16 rust-overlay,
17 ...
18 }:
19 flake-utils.lib.eachDefaultSystem (
20 system:
13 let 21 let
14 # We only need the nightly overlay in the devShell because .rs files are formatted with nightly. 22 # We only need the nightly overlay in the devShell because .rs files are formatted with nightly.
15 overlays = [ (import rust-overlay) ]; 23 overlays = [ (import rust-overlay) ];
16 pkgs = import nixpkgs { inherit system overlays; }; 24 pkgs = import nixpkgs { inherit system overlays; };
17 rustNightly = pkgs.rust-bin.nightly."2024-12-12".default; 25 rustNightly = pkgs.rust-bin.nightly."2025-08-31".default;
18 in 26 in
19 with pkgs; 27 with pkgs;
20 { 28 {
@@ -26,14 +34,27 @@
26 lockFile = ./Cargo.lock; 34 lockFile = ./Cargo.lock;
27 }; 35 };
28 nativeBuildInputs = [ pkg-config ]; 36 nativeBuildInputs = [ pkg-config ];
29 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin 37 buildInputs =
30 (with darwin.apple_sdk.frameworks; [ AppKit Security Cocoa ]); 38 [ openssl ]
39 ++ lib.optionals stdenv.isDarwin (
40 with darwin.apple_sdk.frameworks;
41 [
42 AppKit
43 Security
44 Cocoa
45 ]
46 );
31 }; 47 };
32 48
33 devShell = mkShell { 49 devShell = mkShell {
34 buildInputs = [ 50 buildInputs = [
35 (rustNightly.override { 51 (rustNightly.override {
36 extensions = [ "rust-src" "rust-analyzer-preview" "rustfmt" "clippy" ]; 52 extensions = [
53 "rust-src"
54 "rust-analyzer-preview"
55 "rustfmt"
56 "clippy"
57 ];
37 }) 58 })
38 pkg-config 59 pkg-config
39 cargo-tarpaulin 60 cargo-tarpaulin
@@ -41,5 +62,6 @@
41 sqlite 62 sqlite
42 ]; 63 ];
43 }; 64 };
44 }); 65 }
66 );
45} 67}