nur-packages

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

default.nix (967B)


      1 { lib, stdenvNoCC, fetchfromgh, unzip, makeWrapper }:
      2 
      3 stdenvNoCC.mkDerivation (finalAttrs: {
      4   pname = "sloth";
      5   version = "3.2";
      6 
      7   src = fetchfromgh {
      8     owner = "sveinbjornt";
      9     repo = "Sloth";
     10     name = "sloth-${finalAttrs.version}.zip";
     11     hash = "sha256-8/x8I769V8kGxstDuXXUaMtGvg03n2vhrKvmaltSISo=";
     12     inherit (finalAttrs) version;
     13   };
     14 
     15   sourceRoot = ".";
     16 
     17   nativeBuildInputs = [ unzip makeWrapper ];
     18 
     19   installPhase = ''
     20     runHook preInstall
     21     mkdir -p $out/Applications
     22     mv *.app $out/Applications
     23     makeWrapper $out/{Applications/Sloth.app/Contents/MacOS/Sloth,bin/sloth}
     24     runHook postInstall
     25   '';
     26 
     27   meta = with lib; {
     28     description = "Nice GUI for lsof";
     29     homepage = "https://sveinbjorn.org/sloth";
     30     sourceProvenance = with sourceTypes; [ binaryNativeCode ];
     31     license = licenses.bsd3;
     32     maintainers = [ maintainers.sikmir ];
     33     platforms = [ "x86_64-darwin" ];
     34     mainProgram = "sloth";
     35     skip.ci = true;
     36   };
     37 })