diff --git a/flake.lock b/flake.lock index 6b43dc0..b1b8baf 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,20 @@ { "nodes": { + "crane": { + "locked": { + "lastModified": 1739936662, + "narHash": "sha256-x4syUjNUuRblR07nDPeLDP7DpphaBVbUaSoeZkFbGSk=", + "owner": "ipetkov", + "repo": "crane", + "rev": "19de14aaeb869287647d9461cbd389187d8ecdb7", + "type": "github" + }, + "original": { + "owner": "ipetkov", + "repo": "crane", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems" @@ -36,6 +51,7 @@ }, "root": { "inputs": { + "crane": "crane", "flake-utils": "flake-utils", "nixpkgs": "nixpkgs", "rust-overlay": "rust-overlay" diff --git a/flake.nix b/flake.nix index d7b5288..e4379ba 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,7 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; + crane.url = "github:ipetkov/crane"; rust-overlay = { url = "github:oxalica/rust-overlay"; inputs.nixpkgs.follows = "nixpkgs"; @@ -19,8 +20,12 @@ inherit system; overlays = [ inputs.rust-overlay.overlays.default ]; }; + + lib = import ./lib { inherit inputs; }; in { + inherit lib; + devShells.default = pkgs.mkShell { nativeBuildInputs = [ pkgs.rust-bin.nightly.latest.default diff --git a/lib/cargo-dylint.nix b/lib/cargo-dylint.nix new file mode 100644 index 0000000..aeb7798 --- /dev/null +++ b/lib/cargo-dylint.nix @@ -0,0 +1,7 @@ +{ + inputs, +}: + +{ + +} diff --git a/lib/default.nix b/lib/default.nix new file mode 100644 index 0000000..6109231 --- /dev/null +++ b/lib/default.nix @@ -0,0 +1,5 @@ +{ + +}: + +