aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-17 12:03:09 -0500
committerMarc Coquand <marc@mccd.space>2024-05-17 12:03:09 -0500
commit8dbf8014991bd7456dfa09b85f07c04086d70459 (patch)
tree6c9470e99e1713757d1487d18a16d04d4b981885 /flake.nix
parentefe45feea10551feda95d647dccecd973cfe5320 (diff)
downloadstitch-8dbf8014991bd7456dfa09b85f07c04086d70459.tar.gz
stitch-8dbf8014991bd7456dfa09b85f07c04086d70459.tar.bz2
stitch-8dbf8014991bd7456dfa09b85f07c04086d70459.zip
stuff
Diffstat (limited to '')
-rw-r--r--flake.nix26
1 files changed, 8 insertions, 18 deletions
diff --git a/flake.nix b/flake.nix
index c6d15f0..a51608b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -33,9 +33,14 @@
${package} = prev.${package}.overrideAttrs (_: {
# Prevent the ocaml dependencies from leaking into dependent environments
doNixSupport = false;
- buildInputs =
- [ pkgs."gmp" pkgs."libev" pkgs."openssl" pkgs."libargon2" ];
- DUNE_PROFILE = "release";
+ buildInputs = [
+ pkgs.glibc.static
+ pkgs.zlib.static
+ pkgs.binutils-unwrapped
+ pkgs.ocaml
+ pkgs.musl
+ pkgs.gcc
+ ];
});
};
scope' = scope.overrideScope' overlay;
@@ -49,21 +54,6 @@
packages.default = main;
-
- defaultPackage = pkgs.stdenv.mkDerivation {
- name = "stitch";
- src = ./.;
- buildInputs = devPackages;
- buildPhase = ''
- dune build --profile release
- '';
-
- installPhase = ''
- echo "building to $out"
- cp _build/install/default/bin/stitch/ $out
- '';
- };
-
apps.stitch.default = {
type = "app";
program = "${main}/bin/stitch";