aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 8f15492..8e12969 100644
--- a/flake.nix
+++ b/flake.nix
@@ -49,6 +49,20 @@
packages.default = main;
+
+ defaultPackage = pkgs.stdenv.mkDerivation {
+ name = "stitch";
+ src = ./.;
+ buildInputs = devPackages;
+ buildPhase = ''
+ dune build --profile-release
+ '';
+
+ installPhase = ''
+ cp _build/install/default/bin/stitch $out
+ '';
+ };
+
apps.stitch.default = {
type = "app";
program = "${main}/bin/stitch";