aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-10 19:28:33 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-10 19:28:33 -0700
commitd0e3f1bd895f3b4f99840f989f528a4669fea309 (patch)
tree303a64db0a3a7f3768f0554ec40846746269755b /flake.nix
parentanother try (diff)
downloadfcuny.net-d0e3f1bd895f3b4f99840f989f528a4669fea309.tar.gz
i don't think it will work
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/flake.nix b/flake.nix
index 7d5a4b2..1c9b9dd 100644
--- a/flake.nix
+++ b/flake.nix
@@ -22,6 +22,7 @@
'';
dontInstall = true;
};
+
defaultApp = pkgs.writers.writeBashBin "run-hugo" ''
set -e
set -o pipefail
@@ -29,14 +30,15 @@
hugo server -D
'';
- deploy = pkgs.writers.writeBashBin "run-deploy" ''
- set -e
- set -o pipefile
- export PATH=${
- pkgs.lib.makeBinPath [ pkgs.hugo pkgs.git pkgs.jq pkgs.flyctl ]
- }
- ./scripts/deploy.sh
- '';
+ apps = {
+ deploy = pkgs.pkgs.writeShellScriptBin "run-deploy" ''
+ set -euxo pipefail
+ export PATH=${
+ pkgs.lib.makeBinPath [ pkgs.hugo pkgs.git pkgs.jq pkgs.flyctl ]
+ }:$PATH
+ ./scripts/deploy.sh
+ '';
+ };
devShell =
pkgs.mkShell { buildInputs = with pkgs; [ hugo flyctl git jq ]; };