ocamlPackages.checkseum: 0.3.1 -> 0.3.2

https://github.com/mirage/checkseum/releases/tag/v0.3.2
This commit is contained in:
sternenseemann 2021-08-03 13:54:42 +02:00 committed by Vincent Laporte
parent 8a8acb893e
commit 1666ffebb1
2 changed files with 2 additions and 18 deletions

View file

@ -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

View file

@ -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 $$?)