depot/third_party/nixpkgs/pkgs/by-name/nu/numi/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

41 lines
864 B
Nix

{
lib,
stdenv,
fetchurl,
undmg,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "numi";
version = "3.32.721";
src = fetchurl {
url = "https://s3.numi.app/updates/${finalAttrs.version}/Numi.dmg";
hash = "sha256-IbX4nsrPqwOSlYdNJLeaRQwIDVJrzfMXFqRqixHd2zA=";
};
nativeBuildInputs = [ undmg ];
sourceRoot = ".";
installPhase = ''
runHook preInstall
mkdir -p "$out/Applications"
cp -R *.app "$out/Applications"
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Beautiful calculator app for macOS";
homepage = "https://numi.app/";
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ donteatoreo ];
platforms = lib.platforms.darwin;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
};
})