nixpkgs/pkgs/by-name/st/stenc/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
923 B
Nix
Raw Normal View History

2020-11-26 09:07:19 +00:00
{ lib
, stdenv
, fetchFromGitHub
, gitUpdater
2020-11-26 09:07:19 +00:00
, autoreconfHook
}:
2019-10-01 08:02:32 +01:00
stdenv.mkDerivation rec {
pname = "stenc";
2022-08-19 19:55:49 +01:00
version = "1.1.1";
2019-10-01 08:02:32 +01:00
src = fetchFromGitHub {
owner = "scsitape";
repo = "stenc";
rev = version;
2022-08-19 19:55:49 +01:00
sha256 = "GcCRVkv+1mREq3MhMRn5fICthwI4WRQJSP6InuzxP1Q=";
2020-11-26 09:07:19 +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
'';
2020-11-26 09:07:19 +00:00
nativeBuildInputs = [ autoreconfHook ];
passthru.updateScript = gitUpdater { };
2019-10-01 08:02:32 +01:00
meta = {
description = "SCSI Tape Encryption Manager";
mainProgram = "stenc";
homepage = "https://github.com/scsitape/stenc";
2024-04-26 12:35:31 +01:00
license = lib.licenses.gpl2Only;
2021-01-15 09:19:50 +00:00
maintainers = with lib.maintainers; [ woffs ];
platforms = lib.platforms.linux;
2019-10-01 08:02:32 +01:00
};
}