Commit 95f2c7af30

95f2c7af30678b09775d0d6e2b0e044d862fe520

parent: c71cec1f54

Unregistered key

Ryan <error.nointernet@gmail.com> · 2024-03-09 04:03 UTC
committer: <noreply@github.com>

Nix flake updates (#214)

Layout: unified · split

flake.lock +51 −15
@@ -1,12 +1,15 @@
1{ 1{
2 "nodes": { 2 "nodes": {
3 "flake-utils": { 3 "flake-utils": {
4 "inputs": {
5 "systems": "systems"
6 },
4 "locked": { 7 "locked": {
5 "lastModified": 1678901627, 8 "lastModified": 1709126324,
6 "narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=", 9 "narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=",
7 "owner": "numtide", 10 "owner": "numtide",
8 "repo": "flake-utils", 11 "repo": "flake-utils",
9 "rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6", 12 "rev": "d465f4819400de7c8d874d50b982301f28a84605",
10 "type": "github" 13 "type": "github"
11 }, 14 },
12 "original": { 15 "original": {
@@ -16,12 +19,15 @@
16 } 19 }
17 }, 20 },
18 "flake-utils_2": { 21 "flake-utils_2": {
22 "inputs": {
23 "systems": "systems_2"
24 },
19 "locked": { 25 "locked": {
20 "lastModified": 1659877975, 26 "lastModified": 1705309234,
21 "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", 27 "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
22 "owner": "numtide", 28 "owner": "numtide",
23 "repo": "flake-utils", 29 "repo": "flake-utils",
24 "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", 30 "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
25 "type": "github" 31 "type": "github"
26 }, 32 },
27 "original": { 33 "original": {
@@ -32,11 +38,11 @@
32 }, 38 },
33 "nixpkgs": { 39 "nixpkgs": {
34 "locked": { 40 "locked": {
35 "lastModified": 1679437018, 41 "lastModified": 1709703039,
36 "narHash": "sha256-vOuiDPLHSEo/7NkiWtxpHpHgoXoNmrm+wkXZ6a072Fc=", 42 "narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=",
37 "owner": "nixos", 43 "owner": "nixos",
38 "repo": "nixpkgs", 44 "repo": "nixpkgs",
39 "rev": "19cf008bb18e47b6e3b4e16e32a9a4bdd4b45f7e", 45 "rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d",
40 "type": "github" 46 "type": "github"
41 }, 47 },
42 "original": { 48 "original": {
@@ -48,11 +54,11 @@
48 }, 54 },
49 "nixpkgs_2": { 55 "nixpkgs_2": {
50 "locked": { 56 "locked": {
51 "lastModified": 1665296151, 57 "lastModified": 1706487304,
52 "narHash": "sha256-uOB0oxqxN9K7XGF1hcnY+PQnlQJ+3bP2vCn/+Ru/bbc=", 58 "narHash": "sha256-LE8lVX28MV2jWJsidW13D2qrHU/RUUONendL2Q/WlJg=",
53 "owner": "NixOS", 59 "owner": "NixOS",
54 "repo": "nixpkgs", 60 "repo": "nixpkgs",
55 "rev": "14ccaaedd95a488dd7ae142757884d8e125b3363", 61 "rev": "90f456026d284c22b3e3497be980b2e47d0b28ac",
56 "type": "github" 62 "type": "github"
57 }, 63 },
58 "original": { 64 "original": {
@@ -75,11 +81,11 @@
75 "nixpkgs": "nixpkgs_2" 81 "nixpkgs": "nixpkgs_2"
76 }, 82 },
77 "locked": { 83 "locked": {
78 "lastModified": 1679624450, 84 "lastModified": 1709863839,
79 "narHash": "sha256-wiDqUaklmc31E1+wz5sv52sMcWvZKsL1FBeGJCxz628=", 85 "narHash": "sha256-QpEL5FmZNi2By3sKZY55wGniFXc4wEn9PQczlE8TG0o=",
80 "owner": "oxalica", 86 "owner": "oxalica",
81 "repo": "rust-overlay", 87 "repo": "rust-overlay",
82 "rev": "afbdcf305fd6f05f708fe76d52f24d37d066c251", 88 "rev": "e5ab9ee98f479081ad971473d2bc13c59e9fbc0a",
83 "type": "github" 89 "type": "github"
84 }, 90 },
85 "original": { 91 "original": {
@@ -87,6 +93,36 @@
87 "repo": "rust-overlay", 93 "repo": "rust-overlay",
88 "type": "github" 94 "type": "github"
89 } 95 }
96 },
97 "systems": {
98 "locked": {
99 "lastModified": 1681028828,
100 "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
101 "owner": "nix-systems",
102 "repo": "default",
103 "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
104 "type": "github"
105 },
106 "original": {
107 "owner": "nix-systems",
108 "repo": "default",
109 "type": "github"
110 }
111 },
112 "systems_2": {
113 "locked": {
114 "lastModified": 1681028828,
115 "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
116 "owner": "nix-systems",
117 "repo": "default",
118 "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
119 "type": "github"
120 },
121 "original": {
122 "owner": "nix-systems",
123 "repo": "default",
124 "type": "github"
125 }
90 } 126 }
91 }, 127 },
92 "root": "root", 128 "root": "root",
flake.nix +10 −9
@@ -14,28 +14,29 @@
14 # We only need the nightly overlay in the devShell because .rs files are formatted with nightly. 14 # We only need the nightly overlay in the devShell because .rs files are formatted with nightly.
15 overlays = [ (import rust-overlay) ]; 15 overlays = [ (import rust-overlay) ];
16 pkgs = import nixpkgs { inherit system overlays; }; 16 pkgs = import nixpkgs { inherit system overlays; };
17 rustNightly = pkgs.rust-bin.nightly."2023-03-17".default; 17 rustNightly = pkgs.rust-bin.nightly."2024-03-08".default;
18 in 18 in
19 with pkgs; 19 with pkgs;
20 { 20 {
21 packages.default = pkgs.rustPlatform.buildRustPackage { 21 packages.default = rustPlatform.buildRustPackage {
22 pname = "iamb"; 22 pname = "iamb";
23 version = "0.0.7"; 23 version = self.shortRev or self.dirtyShortRev;
24 src = ./.; 24 src = ./.;
25 cargoLock = { 25 cargoLock = {
26 lockFile = ./Cargo.lock; 26 lockFile = ./Cargo.lock;
27 outputHashes = { 27 outputHashes = {
28 "keybindings-0.0.1" = "sha256-0ZWJNmKdxbJq1W/fuxzyD5Yagu6KsO5WMHlcM51nDvo="; 28 "keybindings-0.0.1" = "sha256-6gGviJF4/gzoPxgh0XJXXrhQoWxOTqyI9fwiOE+TY7s=";
29 }; 29 };
30 }; 30 };
31 nativeBuildInputs = [ pkgs.pkg-config ]; 31 nativeBuildInputs = [ pkg-config ];
32 buildInputs = [ pkgs.openssl ] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin 32 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin
33 (with pkgs.darwin.apple_sdk.frameworks; [ AppKit Security ]); 33 (with darwin.apple_sdk.frameworks; [ AppKit Security ]);
34 }; 34 };
35
35 devShell = mkShell { 36 devShell = mkShell {
36 buildInputs = [ 37 buildInputs = [
37 (rustNightly.override { 38 (rustNightly.override {
38 extensions = [ "rust-src" "rust-analyzer-preview" "rustfmt" "clippy" ]; 39 extensions = [ "rust-src" "rust-analyzer-preview" "rustfmt" "clippy" ];
39 }) 40 })
40 pkg-config 41 pkg-config
41 cargo-tarpaulin 42 cargo-tarpaulin