nur-packages

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

default.nix (705B)


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