updated readme and automatically download appimage
This commit is contained in:
parent
044bcc975b
commit
fd8519482d
10
README.md
10
README.md
@ -12,11 +12,15 @@ nix build
|
|||||||
|
|
||||||
```txt
|
```txt
|
||||||
nix develop
|
nix develop
|
||||||
nix run .#dev
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The `nix run .#dev` command will download the AppImage used for building.
|
This will put you in a shell with `appimage-run` and other useful utilities.
|
||||||
It can then be inspected locally with tools like `file` and `appimage-run`, which are offered by the `nix develop` command.
|
It will also download the AppImage that is currently being packaged.
|
||||||
|
To manually download the AppImage do:
|
||||||
|
|
||||||
|
```txt
|
||||||
|
nix run .#dev
|
||||||
|
```
|
||||||
|
|
||||||
### Resources
|
### Resources
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
apps.${system} = {
|
apps.${system} = {
|
||||||
dev = {
|
dev = {
|
||||||
program = "${pkgs.writeShellScript "download-appimage" ''
|
program = "${pkgs.writeShellScript "download-appimage" ''
|
||||||
${pkgs.curl}/bin/curl ${src.url} -Lo ${name}.AppImage
|
${pkgs.curl}/bin/curl ${src.url} -C - -Lo ${name}.AppImage
|
||||||
''}";
|
''}";
|
||||||
type = "app";
|
type = "app";
|
||||||
};
|
};
|
||||||
@ -56,6 +56,10 @@
|
|||||||
appimage-run
|
appimage-run
|
||||||
file
|
file
|
||||||
];
|
];
|
||||||
|
|
||||||
|
shellHook = ''
|
||||||
|
${self.apps.${system}.dev.program}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user