default.nix (730B)
1 { lib, stdenv, fetchFromGitHub, validatePkgConfig }: 2 3 stdenv.mkDerivation rec { 4 pname = "imsg-compat"; 5 version = "6.8.2"; 6 7 src = fetchFromGitHub { 8 owner = "bsd-ac"; 9 repo = "imsg-compat"; 10 rev = version; 11 hash = "sha256-TFwww3HnTuURVCSMWyaMfwjEWcgGQr1pyPkop6EoHIY="; 12 }; 13 14 postPatch = '' 15 substituteInPlace libimsg.pc.in \ 16 --subst-var-by LIBDIR "lib" 17 ''; 18 19 nativeBuildInputs = [ validatePkgConfig ]; 20 21 makeFlags = [ "PREFIX=$(out)" ]; 22 23 meta = with lib; { 24 description = "Unofficial port of OpenBSD's imsg utilities"; 25 inherit (src.meta) homepage; 26 license = licenses.isc; 27 maintainers = [ maintainers.sikmir ]; 28 platforms = platforms.linux; 29 skip.ci = stdenv.isDarwin; 30 }; 31 }