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
|
# or
|
||||||
nix-shell -p git --command "nix run --experimental-features 'nix-command flakes' git+https://git.foglar.tech/foglar/dotfiles.git"
|
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
|
packages = forAllSystems (system: let
|
||||||
pkgs = nixpkgsFor.${system};
|
pkgs = nixpkgsFor.${system};
|
||||||
in {
|
in {
|
||||||
default = self.packages.${system}.install;
|
default = self.packages.${system}.nix-install;
|
||||||
|
|
||||||
install = pkgs.writeShellApplication {
|
nix-install = pkgs.writeShellApplication {
|
||||||
name = "install";
|
name = "nix-install";
|
||||||
runtimeInputs = with pkgs; [git busybox gum];
|
runtimeInputs = with pkgs; [git busybox gum];
|
||||||
text = ''
|
text = ''
|
||||||
${./install.sh} "$@"
|
${./install.sh} "$@"
|
||||||
@ -32,11 +32,11 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
apps = forAllSystems (system: {
|
apps = forAllSystems (system: {
|
||||||
default = self.apps.${system}.install;
|
default = self.apps.${system}.nix-install;
|
||||||
|
|
||||||
install = {
|
nix-install = {
|
||||||
type = "app";
|
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