Skip to content

Commit b187778

Browse files
stenc: 1.1.1 -> 2.0.0, enable tests, install bash completions (NixOS#372236)
2 parents 0312965 + 4a7f6d9 commit b187778

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

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

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,39 @@
44
fetchFromGitHub,
55
gitUpdater,
66
autoreconfHook,
7+
pkg-config,
8+
pandoc,
9+
installShellFiles,
710
}:
811

912
stdenv.mkDerivation rec {
1013
pname = "stenc";
11-
version = "1.1.1";
14+
version = "2.0.0";
15+
16+
outputs = [
17+
"out"
18+
"man"
19+
];
1220

1321
src = fetchFromGitHub {
1422
owner = "scsitape";
1523
repo = "stenc";
16-
rev = version;
17-
sha256 = "GcCRVkv+1mREq3MhMRn5fICthwI4WRQJSP6InuzxP1Q=";
24+
tag = version;
25+
sha256 = "sha256-L0g285H8bf3g+HDYUDRWBZMOBCnWz3Vm38Ijttu404U=";
1826
};
1927

20-
postPatch = ''
21-
# Fix gcc-13 build by pulling missing header. UPstream also fixed it
22-
# in next major version, but there are many other patch dependencies.
23-
# TODO: remove on next major version update
24-
sed -e '1i #include <cstdint>' -i src/scsiencrypt.h
25-
'';
28+
nativeBuildInputs = [
29+
autoreconfHook
30+
pkg-config
31+
pandoc
32+
installShellFiles
33+
];
2634

27-
nativeBuildInputs = [ autoreconfHook ];
35+
doCheck = true;
36+
37+
postInstall = ''
38+
installShellCompletion --bash bash-completion/stenc
39+
'';
2840

2941
passthru.updateScript = gitUpdater { };
3042

0 commit comments

Comments
 (0)