default.nix (752B)
1 { 2 lib, 3 stdenv, 4 fetchgit, 5 }: 6 7 stdenv.mkDerivation (finalAttrs: { 8 pname = "sdhcp"; 9 version = "0.1-unstable-2018-11-22"; 10 11 src = fetchgit { 12 url = "git://git.2f30.org/sdhcp"; 13 rev = "8455fd2d090bd9b227340c30c92c6aa13302c91a"; 14 hash = "sha256-bN2jFO+cp1Vck0RvB8q2qwMYpUARH2mjZuWs3FkhxR0="; 15 }; 16 17 postPatch = '' 18 substituteInPlace Makefile --replace-fail "ranlib" "\$(RANLIB)" 19 ''; 20 21 makeFlags = [ 22 "AR:=$(AR)" 23 "CC:=$(CC)" 24 "PREFIX=$(out)" 25 "RANLIB:=$(RANLIB)" 26 ]; 27 28 meta = { 29 description = "Simple dhcp client"; 30 homepage = "http://git.2f30.org/sdhcp/"; 31 license = lib.licenses.isc; 32 maintainers = [ lib.maintainers.sikmir ]; 33 platforms = lib.platforms.linux; 34 skip.ci = stdenv.isDarwin; 35 }; 36 })