softhsm: fix src to use Github
Softhsm sources are no longer available, switch to GitHub. After changing the sources, I was no longer able to compile softhsm, as no makefile is included in the tag version there. Add autoreconfHook to fix this. Signed-off-by: Markus Theil <theil.markus@gmail.com>
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchFromGitHub,
|
||||
botan2,
|
||||
sqlite,
|
||||
autoreconfHook,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -11,11 +12,17 @@ stdenv.mkDerivation rec {
|
||||
pname = "softhsm";
|
||||
version = "2.6.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://dist.opendnssec.org/source/${pname}-${version}.tar.gz";
|
||||
hash = "sha256-YSSUcwVLzRgRUZ75qYmogKe9zDbTF8nCVFf8YU30dfI=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "softhsm";
|
||||
repo = "SoftHSMv2";
|
||||
rev = "${version}";
|
||||
hash = "sha256-sx0ceVY795JbtKbQGAVFllB9UJfTdgd242d6c+s1tBw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-crypto-backend=botan"
|
||||
"--with-botan=${lib.getDev botan2}"
|
||||
|
||||
Reference in New Issue
Block a user