nixpkgs/pkgs/applications/misc/rofi/wrapper.nix
xrelkd 6a41fca56a rofi: 1.5.3 -> 1.5.4
Update URL of source code, because the Git repository was moved to
"https://github.com/davatorium/rofi" from
"https://github.com/DaveDavenport/rofi".
2019-07-08 22:39:00 +08:00

25 lines
634 B
Nix

{ stdenv, rofi-unwrapped, makeWrapper, theme ? null }:
if theme == null then rofi-unwrapped else
stdenv.mkDerivation {
pname = "rofi";
version = rofi-unwrapped.version;
buildInputs = [ makeWrapper ];
preferLocalBuild = true;
passthru.unwrapped = rofi-unwrapped;
buildCommand = ''
mkdir $out
ln -s ${rofi-unwrapped}/* $out
rm $out/bin
mkdir $out/bin
ln -s ${rofi-unwrapped}/bin/* $out/bin
rm $out/bin/rofi
makeWrapper ${rofi-unwrapped}/bin/rofi $out/bin/rofi --add-flags "-theme ${theme}"
'';
meta = rofi-unwrapped.meta // {
priority = (rofi-unwrapped.meta.priority or 0) - 1;
};
}