Skip to content

Commit

Permalink
docs: show usage of new frosh nix user repository
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Jan 14, 2024
1 parent 30b6ef2 commit 5a479bc
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions wiki/docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,38 @@ Download the .deb, .rpm or .apk packages from the [releases](https://github.com/
### Nix

```shell
nix-env -iA nixpkgs.shopware-cli
nix profile install nixpkgs#shopware-cli
```

or directly from the FriendsOfShopware repository (more up to date)

```shell
nix profile install github:FriendsOfShopware/nur-packages#shopware-cli
```

### Devenv

Update `devenv.yaml` with a new input:

```yaml
inputs:
nixpkgs:
url: github:NixOS/nixpkgs/nixpkgs-unstable
froshpkgs:
url: github:FriendsOfShopware/nur-packages
inputs:
nixpkgs:
follows: "nixpkgs"
```
and then you can use the new input in the `devenv.nix` file. Don't forget to add the `inputs` argument, to the first line.


```nix
{ pkgs, ... }: {
packages = [ pkgs.shopware-cli ];
{ pkgs, inputs, ... }: {
packages = [
inputs.froshpkgs.packages.${pkgs.system}.shopware-cli
];
}
```

Expand Down

0 comments on commit 5a479bc

Please sign in to comment.