[PATCH 1/7] refactor(nix): rm now unused imports
Thomas Mühlbacher <[email protected]> Thu, 25 Sep 2025 00:17:28 +0000
| Newsgroups | org.kernel.vger.linux-bcachefs |
|---|---|
| Message-ID | <[email protected]> |
---
flake.nix | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/flake.nix b/flake.nix
index 98ef62a9..d0811bf5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -64,10 +64,6 @@
...
}:
let
- inherit (builtins) readFile split;
- inherit (lib.lists) findFirst;
- inherit (lib.strings) hasPrefix removePrefix substring;
-
pkgs = import nixpkgs {
inherit system;
overlays = [ (import rust-overlay) ];
@@ -76,7 +72,7 @@
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
rustfmtToml = builtins.fromTOML (builtins.readFile ./rustfmt.toml);
- rev = self.shortRev or self.dirtyShortRev or (substring 0 8 self.lastModifiedDate);
+ rev = self.shortRev or self.dirtyShortRev or (lib.substring 0 8 self.lastModifiedDate);
version = "${cargoToml.package.version}+${rev}";
mkCommon =
--
2.51.0