mirror of
https://github.com/ilyakooo0/nix-bundle.git
synced 2024-09-11 06:55:53 +03:00
Fix appimage stuff
Wasn't working since v0.1.1
This commit is contained in:
parent
505248d4ce
commit
1b9cffd972
@ -13,7 +13,7 @@ fi
|
|||||||
|
|
||||||
target="$1"
|
target="$1"
|
||||||
|
|
||||||
expr="with import <nixpkgs> {}; with import ./. {}; appdir { name = \"$target\"; target = $target; }"
|
expr="with import <nixpkgs> {}; with import ./appimage-top.nix {}; appdir { name = \"$target\"; target = $target; }"
|
||||||
|
|
||||||
out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
|
out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
|
||||||
|
|
||||||
|
13
appimage-top.nix
Normal file
13
appimage-top.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{nixpkgs ? import <nixpkgs> {}}:
|
||||||
|
|
||||||
|
with nixpkgs;
|
||||||
|
|
||||||
|
rec {
|
||||||
|
appimagetool = callPackage ./appimagetool.nix {};
|
||||||
|
|
||||||
|
appimage = callPackage ./appimage.nix {
|
||||||
|
inherit appimagetool;
|
||||||
|
};
|
||||||
|
|
||||||
|
appdir = callPackage ./appdir.nix {};
|
||||||
|
}
|
@ -19,7 +19,7 @@ fi
|
|||||||
|
|
||||||
target="$1"
|
target="$1"
|
||||||
|
|
||||||
expr="with import <nixpkgs> {}; with import ./. {}; appimage (appdir { name = \"$target\"; target = $target; })"
|
expr="with import <nixpkgs> {}; with import ./appimage-top.nix {}; appimage (appdir { name = \"$target\"; target = $target; })"
|
||||||
|
|
||||||
out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
|
out=$(nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr"))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user