about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2024-06-20 12:02:05 +0200
committerGitHub <noreply@github.com>2024-06-20 12:02:05 +0200
commit68614f8d3445312021e7f0d31d85f8ba26363600 (patch)
tree2ae3d6936ce6ce4d4978427672d071b7971d93c1
parent9576a4c9e0dce842fc0c2a2734bc785751695c61 (diff)
parent922322cf5eaeafa99cf0d6ad90367601b4d10fb1 (diff)
Merge pull request #318359 from DontEatOreo/pkgs-numi
-rw-r--r--pkgs/by-name/nu/numi/package.nix41
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 ];
+  };
+})