pkgs: diff-flake: re-order functions
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
08740e846f
commit
464ed92b00
|
@ -24,11 +24,6 @@ current_system() {
|
||||||
nix eval --raw --impure --expr 'builtins.currentSystem'
|
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() {
|
add_home() {
|
||||||
FLAKE_OUTPUTS+=("homeConfigurations.\"$1\".activationPackage")
|
FLAKE_OUTPUTS+=("homeConfigurations.\"$1\".activationPackage")
|
||||||
}
|
}
|
||||||
|
@ -37,6 +32,11 @@ add_host() {
|
||||||
FLAKE_OUTPUTS+=("nixosConfigurations.\"$1\".config.system.build.toplevel")
|
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() {
|
usage() {
|
||||||
print_err "Usage: $0 [option]... [-- [nix build option]...]"
|
print_err "Usage: $0 [option]... [-- [nix build option]...]"
|
||||||
print_err ""
|
print_err ""
|
||||||
|
|
Loading…
Reference in a new issue