Refactor the darktable thing
This commit is contained in:
@@ -20,11 +20,18 @@
|
||||
signal-desktop
|
||||
spotify
|
||||
|
||||
(darktable.overrideAttrs (oldAttrs: {
|
||||
nativeBuildInputs = (oldAttrs.nativeBuildInputs or []) ++ [ makeWrapper ];
|
||||
postInstall = (oldAttrs.postInstall or "") + ''
|
||||
wrapProgram $out/bin/darktable --set GDK_BACKEND wayland
|
||||
'';
|
||||
}))
|
||||
(symlinkJoin {
|
||||
name = "darktable";
|
||||
paths = [ darktable ];
|
||||
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
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user