Commit 6c91cb04fb

6c91cb04fb79b7c9815a3e76f9120cdaa319edd2

parent: a190c21659

Unregistered key

azizsayfiddin <aljustiet@tutamail.com> · 2026-07-30 14:38 UTC
committer: <noreply@github.com>

Fix `broken-string-escape` warning when using stricter `.nix` parsers  (#601)

Co-authored-by: Ulyssa <git@ulyssa.dev>

Layout: unified · split

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