1 /* This makes a keter bundle as described on the github page:
2 https://github.com/snoyberg/keter#bundling-your-app-for-keter
15 # we just use nix as an absolute path so we're not bundling any binaries
17 /* Note that we're not actually putting the executable in the bundle,
18 we already can use the nix store for copying, so we just
19 symlink to the app. */
20 exec = keterExecutable;
23 configFile = writeTextFile {
25 text = (lib.generators.toYAML { } str);
30 name = "keter-bundle";
33 cp ${configFile} config/keter.yaml
35 echo 'create a gzipped tarball'
37 tar -zcvf $out/bundle.tar.gz.keter ./.
39 buildInputs = [ gnutar ];