Refactor the darktable thing
This commit is contained in:
parent
f9238bb576
commit
4a5c21b1af
1 changed files with 13 additions and 6 deletions
|
|
@ -20,11 +20,18 @@
|
||||||
signal-desktop
|
signal-desktop
|
||||||
spotify
|
spotify
|
||||||
|
|
||||||
(darktable.overrideAttrs (oldAttrs: {
|
(symlinkJoin {
|
||||||
nativeBuildInputs = (oldAttrs.nativeBuildInputs or []) ++ [ makeWrapper ];
|
name = "darktable";
|
||||||
postInstall = (oldAttrs.postInstall or "") + ''
|
paths = [ darktable ];
|
||||||
wrapProgram $out/bin/darktable --set GDK_BACKEND wayland
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
'';
|
postBuild = ''
|
||||||
}))
|
# Remove the symlink to the original binary
|
||||||
|
rm $out/bin/darktable
|
||||||
|
|
||||||
|
# Create a wrapper that points to the cached original
|
||||||
|
makeWrapper ${darktable}/bin/darktable $out/bin/darktable \
|
||||||
|
--set GDK_BACKEND wayland
|
||||||
|
'';
|
||||||
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue