diff options
author | DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> | 2024-06-08 23:27:21 +0300 |
---|---|---|
committer | DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> | 2024-06-08 23:27:21 +0300 |
commit | 922322cf5eaeafa99cf0d6ad90367601b4d10fb1 (patch) | |
tree | f834a51e5bff343b5503ab24ef2a8792e94e879d /pkgs/by-name/nu | |
parent | 54908bccbbc52cd0b5383419d7c143a9b755087c (diff) |
numi: init at 3.32.721
Co-authored-by: Nikolay Korotkiy <sikmir@disroot.org>
Diffstat (limited to 'pkgs/by-name/nu')
-rw-r--r-- | pkgs/by-name/nu/numi/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/nu/numi/package.nix b/pkgs/by-name/nu/numi/package.nix new file mode 100644 index 0000000000000..527ecd7c5d2c8 --- /dev/null +++ b/pkgs/by-name/nu/numi/package.nix @@ -0,0 +1,41 @@ +{ + 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 ]; + }; +}) |