update name of the package
This commit is contained in:
parent
c0f162b4ea
commit
f75baa0990
@ -9,4 +9,3 @@ nix-shell -p git --command "nix run --experimental-features 'nix-command flakes'
|
||||
# or
|
||||
nix-shell -p git --command "nix run --experimental-features 'nix-command flakes' git+https://git.foglar.tech/foglar/dotfiles.git"
|
||||
```
|
||||
|
||||
|
||||
12
flake.nix
12
flake.nix
@ -20,10 +20,10 @@
|
||||
packages = forAllSystems (system: let
|
||||
pkgs = nixpkgsFor.${system};
|
||||
in {
|
||||
default = self.packages.${system}.install;
|
||||
default = self.packages.${system}.nix-install;
|
||||
|
||||
install = pkgs.writeShellApplication {
|
||||
name = "install";
|
||||
nix-install = pkgs.writeShellApplication {
|
||||
name = "nix-install";
|
||||
runtimeInputs = with pkgs; [git busybox gum];
|
||||
text = ''
|
||||
${./install.sh} "$@"
|
||||
@ -32,11 +32,11 @@
|
||||
});
|
||||
|
||||
apps = forAllSystems (system: {
|
||||
default = self.apps.${system}.install;
|
||||
default = self.apps.${system}.nix-install;
|
||||
|
||||
install = {
|
||||
nix-install = {
|
||||
type = "app";
|
||||
program = "${self.packages.${system}.install}/bin/install";
|
||||
program = "${self.packages.${system}.nix-install}/bin/nix-install";
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user