nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, fetchpatch }:
2
3stdenv.mkDerivation {
4 name = "openslp-2.0.0";
5
6 src = fetchurl {
7 url = "mirror://sourceforge/openslp/2.0.0/2.0.0/openslp-2.0.0.tar.gz";
8 sha256 = "16splwmqp0400w56297fkipaq9vlbhv7hapap8z09gp5m2i3fhwj";
9 };
10
11 patches = [
12 (fetchpatch {
13 name = "openslp-2.0.0-null-pointer-deref.patch";
14 url = "https://src.fedoraproject.org/cgit/rpms/openslp.git/plain/openslp-2.0.0-null-pointer-deref.patch";
15 sha256 = "186f3rj3z2lf5h1lpbhqk0szj2a9far1p3mjqg6422f29yjfnz6a";
16 })
17 (fetchpatch {
18 name = "openslp-2.0.0-CVE-2016-7567.patch";
19 url = "https://src.fedoraproject.org/cgit/rpms/openslp.git/plain/openslp-2.0.0-cve-2016-7567.patch";
20 sha256 = "0zp61axx93b7nrbsyhn2x4dnw7n9y6g4rys21hyqxk4khrnc2yr9";
21 })
22 ./CVE-2016-4912.patch
23 ./CVE-2019-5544.patch
24 ];
25
26 meta = with lib; {
27 homepage = "http://www.openslp.org/";
28 description = "An open-source implementation of the IETF Service Location Protocol";
29 maintainers = with maintainers; [ ttuegel ];
30 license = licenses.bsd3;
31 platforms = platforms.all;
32 };
33
34}