Commit 6c91cb04fb
Unregistered key
Layout: unified · split
flake.nix +21 −21
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | { |
| 2 | 2 | description = "iamb"; |
| 3 | nixConfig.bash-prompt = "\[nix-develop\]$ "; | |
| 3 | nixConfig.bash-prompt = "[nix-develop]$ "; | |
| 4 | 4 | |
| 5 | 5 | inputs = { |
| 6 | 6 | nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; |
| @@ -12,18 +12,16 @@ | ||
| 12 | 12 | }; |
| 13 | 13 | }; |
| 14 | 14 | |
| 15 | outputs = | |
| 16 | { | |
| 17 | self, | |
| 18 | nixpkgs, | |
| 19 | crane, | |
| 20 | flake-utils, | |
| 21 | fenix, | |
| 22 | ... | |
| 23 | }: | |
| 15 | outputs = { | |
| 16 | self, | |
| 17 | nixpkgs, | |
| 18 | crane, | |
| 19 | flake-utils, | |
| 20 | fenix, | |
| 21 | ... | |
| 22 | }: | |
| 24 | 23 | flake-utils.lib.eachDefaultSystem ( |
| 25 | system: | |
| 26 | let | |
| 24 | system: let | |
| 27 | 25 | pkgs = nixpkgs.legacyPackages.${system}; |
| 28 | 26 | inherit (pkgs) lib; |
| 29 | 27 | |
| @@ -98,20 +96,22 @@ | ||
| 98 | 96 | # Build the crate as part of `nix flake check` |
| 99 | 97 | inherit iamb; |
| 100 | 98 | |
| 101 | iamb-clippy = craneLib.cargoClippy (commonArgs // { | |
| 102 | inherit cargoArtifacts; | |
| 103 | cargoClippyExtraArgs = "--all-targets -- --deny warnings"; | |
| 104 | }); | |
| 99 | iamb-clippy = craneLib.cargoClippy (commonArgs | |
| 100 | // { | |
| 101 | inherit cargoArtifacts; | |
| 102 | cargoClippyExtraArgs = "--all-targets -- --deny warnings"; | |
| 103 | }); | |
| 105 | 104 | |
| 106 | 105 | iamb-fmt = craneLibNightly.cargoFmt { |
| 107 | 106 | inherit src; |
| 108 | 107 | }; |
| 109 | 108 | |
| 110 | iamb-nextest = craneLib.cargoNextest (commonArgs // { | |
| 111 | inherit cargoArtifacts; | |
| 112 | partitions = 1; | |
| 113 | partitionType = "count"; | |
| 114 | }); | |
| 109 | iamb-nextest = craneLib.cargoNextest (commonArgs | |
| 110 | // { | |
| 111 | inherit cargoArtifacts; | |
| 112 | partitions = 1; | |
| 113 | partitionType = "count"; | |
| 114 | }); | |
| 115 | 115 | }; |
| 116 | 116 | |
| 117 | 117 | packages.default = iamb; |