depot/third_party/nixpkgs/pkgs/by-name/sk/skimpdf/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

37 lines
871 B
Nix

{
stdenv,
lib,
undmg,
fetchurl,
}:
stdenv.mkDerivation rec {
pname = "Skim";
version = "1.7.3";
src = fetchurl {
name = "Skim-${version}.dmg";
url = "mirror://sourceforge/project/skim-app/Skim/Skim-${version}/Skim-${version}.dmg";
hash = "sha256-AMHEzlipL0Bv68Gnyq040t4DQhPkQcmDixZ6Oo0Vobc=";
};
nativeBuildInputs = [undmg];
sourceRoot = ".";
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
cp -R Skim.app $out/Applications
runHook postInstall
'';
meta = with lib; {
description = "Skim is a PDF reader and note-taker for OS X";
homepage = "https://skim-app.sourceforge.io/";
license = licenses.bsd0;
sourceProvenance = with sourceTypes; [binaryNativeCode];
mainProgram = "Skim.app";
maintainers = with maintainers; [YvesStraten];
platforms = platforms.darwin;
};
}