2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-03-05 16:20:37 +00:00
|
|
|
, gitUpdater
|
2021-02-05 17:12:51 +00:00
|
|
|
, autoreconfHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "stenc";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scsitape";
|
|
|
|
repo = "stenc";
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "GcCRVkv+1mREq3MhMRn5fICthwI4WRQJSP6InuzxP1Q=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Fix gcc-13 build by pulling missing header. UPstream also fixed it
|
|
|
|
# in next major version, but there are many other patch dependencies.
|
|
|
|
# TODO: remove on next major version update
|
|
|
|
sed -e '1i #include <cstdint>' -i src/scsiencrypt.h
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
passthru.updateScript = gitUpdater { };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SCSI Tape Encryption Manager";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "stenc";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/scsitape/stenc";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ woffs ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|