stitch
Note taking for messy minimalists
git clone git://mccd.space/stitchcommit ba87d19e10f0b0b960ce68742bbfa55f4e752055
parent 53521711a7cf4eb63190cd4e780b509ac4a1708f
Author: Marc Coquand <marc@mccd.space>
Date: Thu, 16 May 2024 14:40:15 -0500
updates to building flake
Diffstat:
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git 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";