chore: nix build improvements

This commit is contained in:
Jeremy Wall 2025-07-18 14:14:53 -04:00
parent 985e3afec4
commit 2b8f88d5f5
2 changed files with 18 additions and 13 deletions

19
flake.lock generated
View File

@ -56,7 +56,9 @@
"naersk": { "naersk": {
"inputs": { "inputs": {
"fenix": "fenix", "fenix": "fenix",
"nixpkgs": "nixpkgs" "nixpkgs": [
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1752689277, "lastModified": 1752689277,
@ -74,25 +76,24 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1752077645, "lastModified": 1752747119,
"narHash": "sha256-HM791ZQtXV93xtCY+ZxG1REzhQenSQO020cu6rHtAPk=", "narHash": "sha256-2Kp9St3Pbsmu+xMsobLcgzzUxPvZR7alVJWyuk2BAPc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "be9e214982e20b8310878ac2baa063a961c1bdf6", "rev": "fa0ef8a6bb1651aa26c939aeb51b5f499e86b0ec",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "id": "nixpkgs",
"ref": "nixpkgs-unstable", "type": "indirect"
"repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat",
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"naersk": "naersk" "naersk": "naersk",
"nixpkgs": "nixpkgs"
} }
}, },
"rust-analyzer-src": { "rust-analyzer-src": {

View File

@ -1,11 +1,15 @@
{ {
inputs = { inputs = {
nixpkgs.url = "nixpkgs";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk"; naersk = {
flake-compat = { url = github:edolstra/flake-compat; flake = false; }; url = "github:nix-community/naersk";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-compat = { url = "github:edolstra/flake-compat"; flake = false; };
}; };
outputs = {self, flake-utils, naersk, flake-compat}: outputs = {self, flake-utils, naersk, flake-compat, nixpkgs}:
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
let let
naersk-lib = naersk.lib."${system}"; naersk-lib = naersk.lib."${system}";
@ -18,4 +22,4 @@
} }
); );
} }