2 This makes a keter bundle as described on the github page:
3 https://github.com/snoyberg/keter#bundling-your-app-for-keter
18 # we just use nix as an absolute path so we're not bundling any binaries
21 Note that we're not actually putting the executable in the bundle,
22 we already can use the nix store for copying, so we just
25 exec = keterExecutable;
29 configFile = writeTextFile {
31 text = (lib.generators.toYAML { } str);
36 name = "keter-bundle";
39 cp ${configFile} config/keter.yaml
41 echo 'create a gzipped tarball'
43 tar -zcvf $out/bundle.tar.gz.keter ./.
45 buildInputs = [ gnutar ];