gmid: 1.8 -> 1.8.1

* gmid: 1.8 -> 1.8.1 (#159180)

* gmid: fix v1.8.1 source hash
and use configureFlags instead of overriding configurePhase

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
This commit is contained in:
heph2 2022-02-18 01:18:19 +01:00 committed by GitHub
parent ef818f540d
commit 895a3dd675
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,25 +1,23 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, bison, libressl, libevent }:
{ lib, stdenv, fetchFromGitHub, bison, which, libressl, libevent }:
stdenv.mkDerivation rec {
pname = "gmid";
version = "1.8";
version = "1.8.1";
src = fetchFromGitHub {
owner = "omar-polo";
repo = pname;
rev = version;
sha256 = "sha256-CwJPaZefRDyn2fliOd9FnOLXq70HFu2RsUZhzWQdE3E";
hash = "sha256-XNif164C5b5sVsZW7sy0id4qM/mJzg3RhoHbwJuJqDk=";
};
nativeBuildInputs = [ bison ];
nativeBuildInputs = [ bison which ];
buildInputs = [ libressl libevent ];
configurePhase = ''
runHook preConfigure
./configure PREFIX=$out
runHook postConfigure
'';
configureFlags = [
"PREFIX=${placeholder "out"}"
];
meta = with lib; {
description = "Simple and secure Gemini server";