Skip to content

Commit 297523c

Browse files
authored
cannelloni: 1.1.0 -> 1.2.1 (#389567)
2 parents 6b776fd + 79c054f commit 297523c

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

pkgs/by-name/ca/cannelloni/package.nix

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@
55
cmake,
66
lksctp-tools,
77
sctpSupport ? true,
8+
versionCheckHook,
9+
nix-update-script,
810
}:
911

1012
stdenv.mkDerivation (finalAttrs: {
1113
pname = "cannelloni";
12-
version = "1.1.0";
14+
version = "1.2.1";
1315
src = fetchFromGitHub {
1416
owner = "mguentner";
1517
repo = "cannelloni";
16-
rev = "v${finalAttrs.version}";
17-
hash = "sha256-pAXHo9NCXMFKYcIJogytBiPkQE0nK6chU5TKiDNCKA8=";
18+
tag = "v${finalAttrs.version}";
19+
hash = "sha256-dhrB3qg/ljAP7nX+WpX+g7HaUEGj5pTPdDhY2Mi7pUo=";
1820
};
1921

2022
nativeBuildInputs = [
@@ -27,12 +29,19 @@ stdenv.mkDerivation (finalAttrs: {
2729
"-DSCTP_SUPPORT=${lib.boolToString sctpSupport}"
2830
];
2931

30-
meta = with lib; {
32+
nativeInstallInputs = [
33+
versionCheckHook
34+
];
35+
doInstallCheck = true;
36+
37+
passthru.updateScript = nix-update-script { };
38+
39+
meta = {
3140
description = "SocketCAN over Ethernet tunnel";
3241
mainProgram = "cannelloni";
3342
homepage = "https://github.com/mguentner/cannelloni";
34-
platforms = platforms.linux;
35-
license = licenses.gpl2Only;
36-
maintainers = [ maintainers.samw ];
43+
platforms = lib.platforms.linux;
44+
license = lib.licenses.gpl2Only;
45+
maintainers = [ lib.maintainers.samw ];
3746
};
3847
})

0 commit comments

Comments
 (0)