This commit is contained in:
Sean Buckley 2022-06-29 14:55:21 -04:00
parent 143c8aaee5
commit 8b45caeafc

View file

@ -1,14 +1,19 @@
pkgs: pkgs:
builtins.mapAttrs
(n: v: {
type = "app";
program = toString (pkgs.writeShellScript n v);
})
{ {
jupyterlab = jupyterlab =
let let
jupy = pkgs.python3.withPackages (p: with p; [ jupyterlab ipython ]); jupy = pkgs.python3.withPackages (p: with p; [ jupyterlab ipython ]);
in in
pkgs.writeShellScriptBin "jupyterlab" '' ''
exec ${jupy}/bin/python -m jupyterlab "$@" exec ${jupy}/bin/python -m jupyterlab "$@"
''; '';
qemu-uefi = pkgs.writeShellScriptBin "qemu-uefi" '' qemu-uefi = ''
exec ${pkgs.qemu_kvm}/bin/qemu-kvm -bios ${pkgs.OVMF.fd}/FV/OVMF.fd "$@" exec ${pkgs.qemu_kvm}/bin/qemu-kvm -bios ${pkgs.OVMF.fd}/FV/OVMF.fd "$@"
''; '';
} }