diff --git a/pkgs/diff-flake/diff-flake b/pkgs/diff-flake/diff-flake index f3b41d6..0572b4e 100755 --- a/pkgs/diff-flake/diff-flake +++ b/pkgs/diff-flake/diff-flake @@ -24,11 +24,6 @@ current_system() { nix eval --raw --impure --expr 'builtins.currentSystem' } -add_shell() { - # Use 'inputDerivation' attribute to make sure that it is build-able - FLAKE_OUTPUTS+=("devShells.\"$(current_system)\".\"$1\".inputDerivation") -} - add_home() { FLAKE_OUTPUTS+=("homeConfigurations.\"$1\".activationPackage") } @@ -37,6 +32,11 @@ add_host() { FLAKE_OUTPUTS+=("nixosConfigurations.\"$1\".config.system.build.toplevel") } +add_shell() { + # Use 'inputDerivation' attribute to make sure that it is build-able + FLAKE_OUTPUTS+=("devShells.\"$(current_system)\".\"$1\".inputDerivation") +} + usage() { print_err "Usage: $0 [option]... [-- [nix build option]...]" print_err ""