Add build app
This commit is contained in:
parent
19c9d8e045
commit
7b33d8bf25
2 changed files with 21 additions and 8 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
.direnv/
|
||||
node_modules/
|
||||
node_modules/
|
||||
auto-rotate@henryhiles.com.zip
|
26
flake.nix
26
flake.nix
|
@ -50,16 +50,28 @@
|
|||
};
|
||||
});
|
||||
|
||||
apps.default = {
|
||||
type = "app";
|
||||
program = let
|
||||
file = "/tmp/${uuid}.zip";
|
||||
in
|
||||
pkgs.writeShellScriptBin "build" ''
|
||||
env -C ${self'.packages.default}/${extDir} ${lib.getExe pkgs.zip} ${file} -FS9r .
|
||||
apps = let
|
||||
file = "/tmp/${uuid}.zip";
|
||||
zip = "env -C ${self'.packages.default}/${extDir} ${lib.getExe pkgs.zip} ${file} -FS9r .";
|
||||
in {
|
||||
default = {
|
||||
type = "app";
|
||||
program = pkgs.writeShellScriptBin "build" ''
|
||||
${zip}
|
||||
gnome-extensions install --force ${file}
|
||||
dbus-run-session -- gnome-shell --nested --wayland
|
||||
'';
|
||||
};
|
||||
build = {
|
||||
type = "app";
|
||||
program = let
|
||||
file = "/tmp/${uuid}.zip";
|
||||
in
|
||||
pkgs.writeShellScriptBin "build" ''
|
||||
${zip}
|
||||
cp ${file} .
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue