ba59355e81
- Add the 'gitUpdater' helper function to update git based packages, using the 'genericUpdater' function. - Rework argument passing to the `list-git-tags' and 'list-archive-two-level-versions' scripts. - Replace 'genericUpdater' plus 'list-git-tags' by 'gitUpdater'
31 lines
648 B
Nix
31 lines
648 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, gitUpdater
|
|
, autoreconfHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "stenc";
|
|
version = "1.0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scsitape";
|
|
repo = "stenc";
|
|
rev = version;
|
|
sha256 = "0dsmvr1xpwkcd9yawv4c4vna67yag7jb8jcgn2amywz7nkpzmyxd";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
passthru.updateScript = gitUpdater { inherit pname version; };
|
|
|
|
meta = {
|
|
description = "SCSI Tape Encryption Manager";
|
|
homepage = "https://github.com/scsitape/stenc";
|
|
license = lib.licenses.gpl2;
|
|
maintainers = with lib.maintainers; [ woffs ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|