summaryrefslogtreecommitdiff
path: root/flake.lock
diff options
context:
space:
mode:
authorThomas Mühlbacher <tmuehlbacher@posteo.net>2024-05-28 18:56:08 +0200
committerThomas Mühlbacher <tmuehlbacher@posteo.net>2024-05-28 19:32:15 +0200
commitbf2c0c88528e6e6a2ffd47fe6804ec97c4708804 (patch)
tree3d12d11b38f104bd5b4931f39ab7dbd2eb14124c /flake.lock
parentce01c61ba5e7f272b5d18ae5a46f108dd569c0f4 (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.lock21
1 files changed, 21 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock
index 6cd43325..47820499 100644
--- a/flake.lock
+++ b/flake.lock
@@ -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",