depot/third_party/nixpkgs/pkgs/tools/backup/stenc/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

38 lines
923 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, gitUpdater
, autoreconfHook
}:
stdenv.mkDerivation rec {
pname = "stenc";
version = "1.1.1";
src = fetchFromGitHub {
owner = "scsitape";
repo = "stenc";
rev = version;
sha256 = "GcCRVkv+1mREq3MhMRn5fICthwI4WRQJSP6InuzxP1Q=";
};
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
'';
nativeBuildInputs = [ autoreconfHook ];
passthru.updateScript = gitUpdater { };
meta = {
description = "SCSI Tape Encryption Manager";
mainProgram = "stenc";
homepage = "https://github.com/scsitape/stenc";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ woffs ];
platforms = lib.platforms.linux;
};
}