softhsm: fix src to use Github (#434683)

This commit is contained in:
Jared Baur
2025-09-19 07:08:54 -07:00
committed by GitHub
+12 -5
View File
@@ -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}"
@@ -37,7 +44,7 @@ stdenv.mkDerivation rec {
postInstall = "rm -rf $out/var";
meta = with lib; {
homepage = "https://www.opendnssec.org/softhsm";
homepage = "https://www.softhsm.org/";
description = "Cryptographic store accessible through a PKCS #11 interface";
longDescription = "
SoftHSM provides a software implementation of a generic