diff options
author | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-05-28 18:56:08 +0200 |
---|---|---|
committer | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-05-28 19:32:15 +0200 |
commit | bf2c0c88528e6e6a2ffd47fe6804ec97c4708804 (patch) | |
tree | 3d12d11b38f104bd5b4931f39ab7dbd2eb14124c /flake.lock | |
parent | ce01c61ba5e7f272b5d18ae5a46f108dd569c0f4 (diff) |
build(nix): use crane to build packages
this enables faster incremental rebuilds in nix. it also allows us to
add clippy and cargo test checks more easily. aside from that, i have
tried to carry over things that i think are sensible from the previous
`mkDerivation` call.
the `checkPhase` may as well rather be done in a `installCheckPhase` and
we can set `enableParallelBuilding` to speed up the compilation of
`libbcachefs.a`.
Diffstat (limited to 'flake.lock')
-rw-r--r-- | flake.lock | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -1,5 +1,25 @@ { "nodes": { + "crane": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1716745752, + "narHash": "sha256-8K1R9Yg4r08rYk86Yq+lu3E9L3uRUb4xMqYHgl0VGS0=", + "owner": "ipetkov", + "repo": "crane", + "rev": "19ca94ec2d288de334ae932107816b4a97736cd8", + "type": "github" + }, + "original": { + "owner": "ipetkov", + "repo": "crane", + "type": "github" + } + }, "fenix": { "inputs": { "nixpkgs": [ @@ -85,6 +105,7 @@ }, "root": { "inputs": { + "crane": "crane", "fenix": "fenix", "flake-compat": "flake-compat", "flake-parts": "flake-parts", |