aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-16 14:40:15 -0500
committerMarc Coquand <marc@mccd.space>2024-05-16 14:40:15 -0500
commitba87d19e10f0b0b960ce68742bbfa55f4e752055 (patch)
tree788e9edc9d3c9db079f3fe61ca7044cb5075bda2 /flake.nix
parent53521711a7cf4eb63190cd4e780b509ac4a1708f (diff)
downloadstitch-ba87d19e10f0b0b960ce68742bbfa55f4e752055.tar.gz
stitch-ba87d19e10f0b0b960ce68742bbfa55f4e752055.tar.bz2
stitch-ba87d19e10f0b0b960ce68742bbfa55f4e752055.zip
updates to building flake
Diffstat (limited to '')
-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";