Skip to content

Commit

Permalink
add default app
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Aug 24, 2021
1 parent 87ff983 commit 8a8580c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flake.nix
Expand Up @@ -16,6 +16,7 @@
pkgs = inputs.nixpkgs.legacyPackages.${system};
gitignore = pkgs.callPackage inputs.gitignore { };
in rec {
# `nix build`
packages.similar-sort = pkgs.stdenv.mkDerivation {
name = "similar-sort";
buildInputs = [ pkgs.go ];
Expand All @@ -30,7 +31,11 @@
cp similar-sort $out/bin
'';
};

defaultPackage = packages.similar-sort;

# `nix run`
apps.similar-sort =
inputs.flake-utils.lib.mkApp { drv = packages.similar-sort; };
defaultApp = apps.similar-sort;
});
}

0 comments on commit 8a8580c

Please sign in to comment.