commit f36db2e0c718a6363e980f3dd6e70795b7eeccef
parent 5b44c9c9a89fda84bd24f8d2e610b4eba9b7fd08
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Tue, 8 Aug 2023 02:27:15 +0400
Add darktable-bin
Diffstat:
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/pkgs/darwin/darktable/bin.nix b/pkgs/darwin/darktable/bin.nix
@@ -0,0 +1,34 @@
+{ lib, stdenv, fetchfromgh, undmg, darktable }:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "darktable-bin";
+ version = "4.4.2";
+
+ src = fetchfromgh {
+ owner = "darktable-org";
+ repo = "darktable";
+ name = "darktable-${finalAttrs.version}-x86_64.dmg";
+ hash = "sha256-nrhOoEHarXBKjUIm2MfLp3Ui3NAD1xZpYYabHPqprJo=";
+ version = "release-${finalAttrs.version}";
+ };
+
+ sourceRoot = ".";
+
+ nativeBuildInputs = [ undmg ];
+
+ installPhase = ''
+ runHook preInstall
+
+ mkdir -p $out/Applications
+ cp -r *.app $out/Applications
+
+ runHook postInstall
+ '';
+
+ meta = with lib;
+ darktable.meta // {
+ maintainers = [ maintainers.sikmir ];
+ platforms = [ "x86_64-darwin" ];
+ skip.ci = true;
+ };
+})
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -27,6 +27,7 @@ lib.makeScope newScope (
amethyst-bin = callPackage ./darwin/amethyst/bin.nix { };
cudatext-bin = callPackage ./darwin/cudatext/bin.nix { };
+ darktable-bin = callPackage ./darwin/darktable/bin.nix { };
finch = callPackage ./darwin/finch {
buildGoModule = pkgs.buildGo120Module;
};