Skip to content

Instantly share code, notes, and snippets.

@ymatsiuk
Created May 4, 2021 16:10
Show Gist options
  • Save ymatsiuk/73fce42612600d27737b28cab9a481a8 to your computer and use it in GitHub Desktop.
Save ymatsiuk/73fce42612600d27737b28cab9a481a8 to your computer and use it in GitHub Desktop.
{pkgs, lib, ... }:
{
nixpkgs.overlays = [
(self: super: {
xdg-desktop-portal-wlr = super.xdg-desktop-portal-wlr.overrideAttrs
(oldAttrs: rec {
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ pkgs.makeWrapper ];
postInstall = ''
wrapProgram $out/libexec/xdg-desktop-portal-wlr --prefix PATH ":" ${lib.makeBinPath [ pkgs.slurp ]}
'';
});
})
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment