diff options
Diffstat (limited to 'darktable_my.nix')
-rw-r--r-- | darktable_my.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/darktable_my.nix b/darktable_my.nix new file mode 100644 index 0000000..88585c9 --- /dev/null +++ b/darktable_my.nix @@ -0,0 +1,51 @@ +{ inputs }: +self: super: { + # darktable_my = with nixpkgsmaster; with llvmPackages_16; with gnome; with gsettings-desktop-schemas; (enableDebugging ((darktable.override{ + darktable_my = + with super; + with gnome; + with gsettings-desktop-schemas; + with llvmPackages; + (darktable.override { + stdenv = llvmPackages.stdenv; + exiv2 = self.exiv2_my; + libaom = self.libaom_my; + libavif = self.libavif_my; + }).overrideAttrs + (old: rec { + version = "git"; + src = fetchGit { + url = "https://github.com/darktable-org/darktable"; + ref = "master"; +# rev = "d2f15c8d1da5bb9b72cb554f9f606db953fb75ed"; + rev = "cf3e972fb05d433a7764ee661850182ba456e128"; + submodules = true; + # allRefs = true; + }; + # nativeBuildInputs = old.nativeBuldInputs ++ [ + #cmake ninja llvm + #clang pkg-config + #intltool perl desktop-file-utils wrapGAppsHook gsettings-desktop-schemas + # ]; + nativeBuildInputs = old.nativeBuildInputs ++ [ + git + po4a + bash + ]; + buildInputs = old.buildInputs ++ [ + self.dav1d + rav1e + self.libyuv_my + openmp + self.shaderc_my + ]; + patches = [ ]; + postPatch = lib.concatStringsSep "\n" [ + '' + pushd tools + patchShebangs *.py *.sh + popd + '' + ]; + }); +} |