Tom Bereknyei
d18d34c2db
Allow bundle to handle an evaluated nix expression
...
Example (note the --arg vs --argstr for the package argument):
nix-build appimage-bundle.nix --arg package 'with import <nixpkgs>{}; writers.writePython3Bin "helloThere.py" {} "print(1)\n"' --argstr exec helloThere.py
2019-06-25 16:10:54 -04:00
Tom Bereknyei
943985abb0
Appimage bundler
...
Create fake icon and .desktop to bundle most CLI applications
Usage: nix-build appimage-bundle.nix --argstr package hello --argstr exec hello
2019-06-23 23:35:38 -04:00
Matthew Bauer
e65faad14f
Merge pull request #42 from input-output-hk/add-shebang
...
fix the startup script to run on dash based systems
2019-01-30 22:30:54 -05:00
Matthew Bauer
523fb85c51
Merge pull request #43 from balsoft/patch-1
...
Pass /root through chroot
2019-01-30 22:30:31 -05:00
Александр Бантьев
69c5553aeb
Pass /root
through chroot
...
This PR adds a `/root:root` mapping so that users with UID 0 can run bundles that use `$HOME`. Related to #33 .
2019-01-30 22:30:43 +03:00
Michael Bishop
e8d57a08bc
fix the startup script to run on dash based systems
2018-12-07 05:00:32 -04:00
Matthew Bauer
113d8c6b42
Merge pull request #41 from input-output-hk/escape-hatch
...
add an escape-hatch option to allow things like xdg-open to work inside the sandbox
2018-10-21 19:41:26 -05:00
Michael Bishop
7f12322399
add an escape-hatch option to allow things like xdg-open to work inside the sandbox
2018-10-19 17:05:29 -03:00
Matthew Bauer
014d3a6209
Merge branch 'shared-tmpdir'
2018-04-25 14:30:07 -05:00
Matthew Bauer
ebbcafa214
Cleanup logic
2018-04-25 14:29:51 -05:00
Matthew Bauer
89185dbd8f
Add home dir map
2018-04-10 13:04:01 -05:00
Matthew Bauer
d371f1a5a6
Store temp files in $HOME/.cache
...
This hopefully means we can reuse it.
2018-04-10 12:58:56 -05:00
Matthew Justin Bauer
107eec3dc9
Merge pull request #32 from input-output-hk/dont-leak-setgroups
...
dont leak the /proc/self/setgroups fd
2018-04-05 13:56:41 -05:00
Michael Bishop
8a344343ba
dont leak the /proc/self/setgroups fd
2018-04-05 15:24:19 -03:00
Matthew Bauer
5e49fbc4a0
Cleanup Nix bundling
...
The special case of Nix bundling is useful for handling the hidden
dependencies of Nix. It will automatically add them for you when you
do this:
$ nix-bundle nix /bin/nix
2018-04-04 16:19:32 -05:00
Matthew Bauer
a5060764cb
Add etc and usr to mounts
...
Seems to be okay to do this. Sacrifices purity a little bit though
2018-04-04 16:18:47 -05:00
Matthew Bauer
9e64967a3b
Indentation and cleanup
2018-04-04 15:34:43 -05:00
Matthew Bauer
e33eb8feda
Fix arg passing in nix-bundle
2018-04-04 15:04:37 -05:00
Matthew Justin Bauer
496f2b5247
Merge pull request #31 from input-output-hk/unshare-eperm
...
give directions on how to fix namespaces when they are disabled
2018-04-04 12:38:10 -05:00
Michael Bishop
f2fa3ec8e2
give directions on how to fix namespaces when they are disabled
2018-04-04 14:32:40 -03:00
Matthew Justin Bauer
27eff80437
Merge pull request #30 from input-output-hk/auto-cleanup
...
auto-delete the tmpdir when finished
2018-04-04 10:28:28 -05:00
Michael Bishop
982cb122d9
auto-delete the tmpdir when finished
2018-04-04 07:33:01 -03:00
Matthew Justin Bauer
55c6a07db2
Update README.md
2018-03-08 12:37:54 -06:00
Matthew Bauer
fa9dd9f4c8
Bump to 0.3.0
2018-03-07 22:27:24 -06:00
Matthew Justin Bauer
393f4153e9
Merge pull request #28 from dtzWill/dtz-fixups
...
Misc fixups that may be of interest (don't merge as-is)
2018-03-03 19:09:16 -06:00
Will Dietz
ff4c7ede61
appimagetool: patch all bins, fix w/version 10
2018-03-03 17:46:12 -06:00
Will Dietz
6993f2a0cb
appimagetool: 7 -> 10
2018-03-03 17:46:12 -06:00
Will Dietz
cb424030eb
Add simple helper for testing AppImage exec on NixOS
2018-03-03 17:46:12 -06:00
Will Dietz
f9642796e8
AppRun: Don't try to setenv with NULL pointers, fix crash
2018-03-03 17:46:12 -06:00
Will Dietz
b2bacc26dd
cleanup dynamicLinker references
2018-03-03 17:46:12 -06:00
Will Dietz
bb7503fae6
Fix with latest nixpkgs, use musl-native pkgs
2018-03-03 17:46:12 -06:00
Matthew Bauer
dcbfa1a761
Fixup release.nix
...
We now need to copy nix-user-chroot to /share/nix-bundle/
2018-03-03 15:16:18 -06:00
Matthew Justin Bauer
0c91c1282b
Merge pull request #26 from input-output-hk/overhaul
...
overhaul most of nix-bundle
2018-03-03 14:55:50 -06:00
michael bishop
630e89d1d1
overhaul most of nix-bundle
...
pulled nix-user-chroot into the same repo
put the startup command into a bash script, so the tarball job knows its deps
changed nix-user-chroot into a c++ program
added CLI flags to allow configuring the sandbox it produces
2018-02-19 21:45:03 -04:00
Matthew Bauer
ffa3349432
update nix-user-chroot again
2017-11-08 20:46:55 -06:00
Matthew Bauer
aa4d9f9880
try to fix appimage generation
2017-11-07 22:29:52 -06:00
Matthew Bauer
74c98a53ea
Update nix-user-chroot
2017-11-07 21:46:03 -06:00
Matthew Bauer
45cfa4b2bb
Add release.nix
2017-10-13 14:57:42 -05:00
Matthew Bauer
685f1ce541
Cleanup nix-run script
2017-10-13 14:49:29 -05:00
Matthew Bauer
6159d8e3f6
Add nix-run.sh
2017-10-13 12:15:24 -05:00
Matthew Justin Bauer
6d176509ba
Merge pull request #16 from matthewbauer/new-apprun
...
New AppRun executable for AppImages
2017-09-09 17:29:40 -05:00
Matthew Bauer
7f0418d578
Configurable nixdir location
2017-08-21 09:22:48 -05:00
Matthew Bauer
abb4dcf30f
Link up HOME dir
2017-05-08 00:04:56 -05:00
Matthew Bauer
31d7b8f4bb
Add extra targets
...
Lots of things need bash and coreutils to be available.
2017-05-08 00:04:56 -05:00
Matthew Bauer
ffb2de51e4
Fix linking issues
2017-05-08 00:04:55 -05:00
Matthew Bauer
6b6f897b28
Fixup wrong chroot
2017-05-08 00:01:12 -05:00
Matthew Bauer
cf35dc5403
Fix link for appdata dir.
2017-04-30 18:55:56 -05:00
Matthew Bauer
acda0b9e4a
Make sure squashfsTools is available
...
appimagetool needs squashfsTools to work properly
2017-04-30 18:51:20 -05:00
Matthew Bauer
72a422f38d
Install AppImage stuff
2017-04-30 18:51:06 -05:00
Matthew Bauer
2c56cec739
Add custom AppRun.
...
Fixes #8 .
2017-04-30 18:50:30 -05:00