From 464ed92b00cf4bab860d92d3787abdfe54543e52 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 16 Mar 2023 11:48:48 +0000 Subject: [PATCH] pkgs: diff-flake: re-order functions This makes it more consistent across the entire file, and follows alphabetical order (home -> host -> shell). --- pkgs/diff-flake/diff-flake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ""