halfempty: fix tests via patch of unreleased commit

This commit is contained in:
Alexandre Esteves 2021-11-08 12:44:42 +00:00 committed by Jonathan Ringer
parent 80477648bd
commit 68e457839c

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, glib, util-linux, scowl }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, glib, util-linux, scowl }:
stdenv.mkDerivation rec {
pname = "halfempty";
@ -16,6 +16,14 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
patches = [
(fetchpatch {
name = "fix-bash-specific-syntax.patch";
url = "https://github.com/googleprojectzero/halfempty/commit/ad15964d0fcaba12e5aca65c8935ebe3f37d7ea3.patch";
sha256 = "sha256:0hgdci0wwi5wyw8i57w0545cxjmsmswm1y6g4vhykap0y40zizav";
})
];
postPatch = ''
substituteInPlace test/Makefile \
--replace '/usr/share/dict/words' '${scowl}/share/dict/words.txt'