package.nix (734B)
1 { 2 lib, 3 stdenv, 4 fetchurl, 5 }: 6 7 stdenv.mkDerivation (finalAttrs: { 8 pname = "ish"; 9 version = "0.2"; 10 11 __structuredAttrs = true; 12 13 src = fetchurl { 14 url = "mirror://sourceforge/icmpshell/ish-v${finalAttrs.version}.tar.gz"; 15 hash = "sha256-C4vE8pWBay9RdL+q0PwzjaNMgqrTD8TyLTYkGwE9V4I="; 16 }; 17 18 postPatch = '' 19 substituteInPlace Makefile --replace-fail "/bin/rm" "rm" 20 ''; 21 22 makeFlags = [ "linux" ]; 23 24 installPhase = '' 25 install -Dm755 ish ishd -t $out/bin 26 ''; 27 28 meta = { 29 description = "ICMP Shell"; 30 homepage = "http://icmpshell.sourceforge.net"; 31 license = lib.licenses.free; 32 maintainers = [ lib.maintainers.sikmir ]; 33 platforms = lib.platforms.linux; 34 skip.ci = stdenv.isDarwin; 35 }; 36 })
