2# nix-build appimage-bundle.nix --argstr package hello --argstr exec hello
3# nix-build appimage-bundle.nix --arg package 'with import <nixpkgs>{}; writers.writePython3Bin "helloThere.py" {} "print(1)\n"' --argstr exec helloThere.py
6{nixpkgs ? import <nixpkgs>{},
11 appimage_src = drv : exec : with nixpkgs;
12 self.stdenv.mkDerivation rec {
13 name = drv.name + "-appdir";
20 buildInputs = [ drv ];
22 mkdir -p $out/share/icons/hicolor/256x256/apps
23 mkdir -p $out/share/applications
26 ln -s ${env}/!(share) $out/
27 ln -s ${env}/share/* $out/share/
29 touch $out/share/icons/hicolor/256x256/apps/${drv.name}.png
30 touch $out/share/icons/${drv.name}.png
32 cat <<EOF > $out/share/applications/${drv.name}.desktop
43 system = builtins.currentSystem;
48 if (nixpkgs.lib.isDerivation package && !(nixpkgs.lib.isString package))
51 target = appimage_src package "${exec}";
55 name = nixpkgs."${package}".name;
56 target = appimage_src (nixpkgs."${package}") "${exec}";
60 with (import (./appimage-top.nix){nixpkgs' = nixpkgs.path;});
61 (appimage (appdir results )).overrideAttrs (old: {name = results.name;})
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list