nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 8170adbd78789804bf2cf9b992985d73ea7f1091
parent d4cda9bc543545615aa2a670573d0d374873c0df
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Wed, 15 Jan 2020 10:10:56 +0300

Add ish

Diffstat:
Mdefault.nix | 1+
Apkgs/ish/default.nix | 29+++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/default.nix b/default.nix @@ -76,6 +76,7 @@ in rec { imgp = python3Packages.callPackage ./pkgs/imgp { inherit (sources) imgp; }; + ish = callPackage ./pkgs/ish { }; mapsoft = callPackage ./pkgs/mapsoft { inherit (sources) mapsoft; }; diff --git a/pkgs/ish/default.nix b/pkgs/ish/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + pname = "ish"; + version = "0.2"; + + src = fetchurl { + url = "mirror://sourceforge/icmpshell/${pname}-v${version}.tar.gz"; + sha256 = "10jp7l0in91n5prc83ykma14r8wd6gyd1amzfi8jysw1jprc92qb"; + }; + + postPatch = '' + substituteInPlace Makefile --replace "/bin/rm" "rm" + ''; + + makeFlags = [ "linux" ]; + + installPhase = '' + install -Dm755 ish ishd -t "$out/bin" + ''; + + meta = with stdenv.lib; { + description = "ICMP Shell"; + homepage = "http://icmpshell.sourceforge.net"; + license = licenses.free; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.linux; + }; +}