Skip to content

Commit ba3b6a7

Browse files
snort: rename to snort2
allow the introduction of the new version of snort (snort3+) which is largely a rewrite of snort. leaving the origional version of snort here as version 2 incase there are non-backward compatible deployments. snort2 is largely unmaintained upstream. Signed-off-by: Brian McGillion <[email protected]>
1 parent e889770 commit ba3b6a7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pkgs/by-name/sn/snort/package.nix renamed to pkgs/by-name/sn/snort2/package.nix

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
1616
libtirpc,
1717
}:
1818

19-
stdenv.mkDerivation rec {
19+
stdenv.mkDerivation (finalAttrs: {
2020
version = "2.9.20";
21-
pname = "snort";
21+
pname = "snort2";
2222

23-
src = fetchurl {
24-
name = "${pname}-${version}.tar.gz";
25-
url = "https://snort.org/downloads/archive/snort/${pname}-${version}.tar.gz";
23+
# TODO: remove this package after 25.05 release
24+
# https://github.com/NixOS/nixpkgs/pull/381363#issuecomment-2653483597
25+
src = fetchurl rec {
26+
name = "snort-${finalAttrs.version}.tar.gz";
27+
url = "https://snort.org/downloads/snort/${name}";
2628
sha256 = "sha256-KUAOE/U7GDHguLEOwSJKHLqm3BUzpTIqIN2Au4S0mBw=";
2729
};
2830

@@ -65,4 +67,4 @@ stdenv.mkDerivation rec {
6567
license = lib.licenses.gpl2;
6668
platforms = with lib.platforms; linux;
6769
};
68-
}
70+
})

0 commit comments

Comments
 (0)