Unverified Commit f7bf5747 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

opencryptoki: 3.23.0 -> 3.24.0 (#408851)

parents 4a21b00b 997fedf5
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -9,23 +9,25 @@
  openssl,
  trousers,
  libcap,
  getent,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "opencryptoki";
  version = "3.23.0";
  version = "3.24.0";

  src = fetchFromGitHub {
    owner = "opencryptoki";
    repo = "opencryptoki";
    rev = "v${version}";
    hash = "sha256-5FcvwGTzsL0lYrSYGlbSY89s6OKzg+2TRlwHlJjdzXo=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-GIcUI5Gjk+whwlD9dBiB2N7q6sPYFnhj5VvyQvc2Z2A=";
  };

  nativeBuildInputs = [
    autoreconfHook
    bison
    flex
    getent
  ];

  buildInputs = [
@@ -37,6 +39,8 @@ stdenv.mkDerivation rec {

  postPatch = ''
    substituteInPlace configure.ac \
      --replace-fail "/usr/sbin/" "" \
      --replace-fail "/bin/" "" \
      --replace-fail "usermod" "true" \
      --replace-fail "useradd" "true" \
      --replace-fail "groupadd" "true" \
@@ -53,16 +57,14 @@ stdenv.mkDerivation rec {

  enableParallelBuilding = true;

  installFlags = [
    "DESTDIR=${placeholder "out"}"
  ];
  installFlags = [ "DESTDIR=${placeholder "out"}" ];

  meta = with lib; {
    changelog = "https://github.com/opencryptoki/opencryptoki/blob/${src.rev}/ChangeLog";
  meta = {
    changelog = "https://github.com/opencryptoki/opencryptoki/blob/v${finalAttrs.version}/ChangeLog";
    description = "PKCS#11 implementation for Linux";
    homepage = "https://github.com/opencryptoki/opencryptoki";
    license = licenses.cpl10;
    license = lib.licenses.cpl10;
    maintainers = [ ];
    platforms = platforms.unix;
    platforms = lib.platforms.unix;
  };
}
})