1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 19:26:02 +00:00
nixpkgs/pkgs/applications/misc/rofi/default.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, makeWrapper
, autoreconfHook, pkgconfig, libxkbcommon, pango, which, git
, cairo, libxcb, xcbutil, xcbutilwm, xcbutilxrm, libstartup_notification
2017-10-14 21:08:19 +01:00
, bison, flex, librsvg, check
2015-02-05 00:03:09 +00:00
}:
stdenv.mkDerivation rec {
pname = "rofi-unwrapped";
version = "1.5.4";
2015-02-05 00:03:09 +00:00
2015-06-18 23:10:01 +01:00
src = fetchurl {
url = "https://github.com/davatorium/rofi/releases/download/${version}/rofi-${version}.tar.gz";
sha256 = "1g1170zmh5v7slnm1sm2d08jgz6icikf8rm17apm1bjzzyw1lhk7";
2015-02-05 00:03:09 +00:00
};
2016-04-24 16:55:20 +01:00
preConfigure = ''
patchShebangs "script"
# root not present in build /etc/passwd
sed -i 's/~root/~nobody/g' test/helper-expand.c
'';
nativeBuildInputs = [ autoreconfHook pkgconfig makeWrapper ];
2017-10-14 21:08:19 +01:00
buildInputs = [ libxkbcommon pango cairo git bison flex librsvg check
2016-12-31 14:22:22 +00:00
libstartup_notification libxcb xcbutil xcbutilwm xcbutilxrm which
2016-08-13 21:30:07 +01:00
];
postInstall = ''
wrapProgram $out/bin/rofi-theme-selector \
--prefix XDG_DATA_DIRS : $out/share
'';
2018-03-11 17:24:08 +00:00
doCheck = false;
2015-02-05 00:03:09 +00:00
meta = with lib; {
description = "Window switcher, run dialog and dmenu replacement";
homepage = "https://github.com/davatorium/rofi";
license = licenses.mit;
maintainers = with maintainers; [ mbakke ma27 ];
platforms = with platforms; linux;
2015-02-05 00:03:09 +00:00
};
}