Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 37 lines 925 B view raw
1{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 pname = "mstpd"; 5 version = "0.0.8"; 6 7 src = fetchFromGitHub { 8 owner = pname; 9 repo = pname; 10 rev = version; 11 sha256 = "1xkfydxljdnj49p5r3mirk4k146428b6imfc9bkfps9yjn64mkgb"; 12 }; 13 14 patches = [ 15 (fetchpatch { 16 name = "fix-strncpy-gcc9.patch"; 17 url = "https://github.com/mstpd/mstpd/commit/d27d7e93485d881d8ff3a7f85309b545edbe1fc6.patch"; 18 sha256 = "19456daih8l3y6m9kphjr7pj7slrqzbj6yacnlgznpxyd8y4d86y"; 19 }) 20 ]; 21 22 nativeBuildInputs = [ autoreconfHook ]; 23 24 configureFlags = [ 25 "--prefix=$(out)" 26 "--sysconfdir=$(out)/etc" 27 "--sbindir=$(out)/sbin" 28 "--libexecdir=$(out)/lib" 29 ]; 30 31 meta = with lib; { 32 description = "Multiple Spanning Tree Protocol daemon"; 33 homepage = "https://github.com/mstpd/mstpd"; 34 license = licenses.gpl2Plus; 35 platforms = platforms.linux; 36 }; 37}