sloth-app: init at 3.2
This commit is contained in:
parent
4d6f67e080
commit
dd4ff7bb35
40
pkgs/by-name/sl/sloth-app/package.nix
Normal file
40
pkgs/by-name/sl/sloth-app/package.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, unzip
|
||||
, makeBinaryWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sloth-app";
|
||||
version = "3.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/sveinbjornt/Sloth/releases/download/${finalAttrs.version}/sloth-${finalAttrs.version}.zip";
|
||||
hash = "sha256-8/x8I769V8kGxstDuXXUaMtGvg03n2vhrKvmaltSISo=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ unzip makeBinaryWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/Applications $out/bin
|
||||
unzip -d $out/Applications $src
|
||||
makeWrapper $out/Applications/Sloth.app/Contents/MacOS/Sloth $out/bin/Sloth
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Mac app that shows all open files, directories, sockets, pipes and devices";
|
||||
homepage = "https://sveinbjorn.org/sloth";
|
||||
license = lib.licenses.bsd3;
|
||||
mainProgram = "Sloth";
|
||||
maintainers = with lib.maintainers; [ emilytrau ];
|
||||
platforms = lib.platforms.darwin;
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user