ocamlPackages.checkseum: 0.3.1 -> 0.3.2

https://github.com/mirage/checkseum/releases/tag/v0.3.2
launchpad/nixpkgs/master
sternenseemann 3 years ago committed by Vincent Laporte
parent 8a8acb893e
commit 1666ffebb1
  1. 8
      pkgs/development/ocaml-modules/checkseum/default.nix
  2. 12
      pkgs/development/ocaml-modules/checkseum/makefile-no-opam.patch

@ -6,7 +6,7 @@
}:
buildDunePackage rec {
version = "0.3.1";
version = "0.3.2";
pname = "checkseum";
useDune2 = true;
@ -15,13 +15,9 @@ buildDunePackage rec {
src = fetchurl {
url = "https://github.com/mirage/checkseum/releases/download/v${version}/checkseum-v${version}.tbz";
sha256 = "b9e4d054e17618b1faed8c0eb15afe0614b2f093e58b59a180bda4500a5d2da1";
sha256 = "9cdd282ea1cfc424095d7284e39e4d0ad091de3c3f2580539d03f6966d45ccd5";
};
patches = [
./makefile-no-opam.patch
];
nativeBuildInputs = [
dune-configurator
pkg-config

@ -1,12 +0,0 @@
diff --git a/freestanding/Makefile b/freestanding/Makefile
index d535050..bb286bd 100644
--- a/freestanding/Makefile
+++ b/freestanding/Makefile
@@ -1,4 +1,6 @@
-PKG_CONFIG_PATH := $(shell opam config var prefix)/lib/pkgconfig
+ifneq (, $(shell command -v opam))
+PKG_CONFIG_PATH ?= $(shell opam var prefix)/lib/pkgconfig
+endif
EXISTS := $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --exists ocaml-freestanding; echo $$?)
Loading…
Cancel
Save