pkgs: diff-flake: re-order functions
All checks were successful
continuous-integration/drone/push Build is passing

This makes it more consistent across the entire file, and follows
alphabetical order (home -> host -> shell).
This commit is contained in:
Bruno BELANYI 2023-03-16 11:48:48 +00:00
parent 08740e846f
commit 464ed92b00

View file

@ -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 ""