astro / deadnix

Scan Nix files for dead code
GNU General Public License v3.0
512 stars 13 forks source link

attribute in let block - used therein also - is deleted #58

Closed 573 closed 1 year ago

573 commented 1 year ago

I. e. this block is transformed via deadnix as follows currently:

@@ -217,9 +217,6 @@
     let
       rootPath = self;
       forEachSystem = nixpkgs.lib.genAttrs [ "aarch64-linux" "x86_64-linux" ];
-      flakeLib = import ./flake {
-        inherit inputs rootPath forEachSystem;
-      };

       formatterPackArgsFor = forEachSystem (system: {
         inherit nixpkgs system;
@@ -236,7 +233,7 @@
       });

       inherit (nixpkgs.lib) listToAttrs;
-      inherit (flakeLib) mkApp mkHome mkNixOnDroid mkNixos mkDevenvJvmLang mkDevenvDeno mkDevenvFlutter mkDevenvJupyter mkDevenvRuby mkDevenvOcaml;
+      inherit (flakeLib) mkApp mkHome mkNixOnDroid mkNixos mkDevenvJvmLang mkDevenvDeno mkDevenvFlutter mkDevenvRuby mkDevenvOcaml;
     in
     {
       homeConfigurations = listToAttrs [
astro commented 1 year ago

Please test

astro commented 1 year ago

Fixed in 1.2.0