summaryrefslogtreecommitdiff
path: root/darktable_my.nix
blob: 2eb9d924599d94284ad222bd202868c677a2aca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ 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 = "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
          ''
        ];
      });
}