3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/rofi/default.nix
R. RyanTM c7adb9ddc8 rofi: 1.5.0 -> 1.5.1
Semi-automatic update generated by https://github.com/ryantm/nix-update tools.

This update was made based on information from https://repology.org/metapackage/rofi/versions.

These checks were done:

- built on NixOS
- ran `/nix/store/rzgrg39hw115rmgjvp74hha615i3pjdv-rofi-1.5.1/bin/rofi -V` and found version 1.5.1
- ran `/nix/store/rzgrg39hw115rmgjvp74hha615i3pjdv-rofi-1.5.1/bin/rofi -v` and found version 1.5.1
- found 1.5.1 with grep in /nix/store/rzgrg39hw115rmgjvp74hha615i3pjdv-rofi-1.5.1
- directory tree listing: https://gist.github.com/530abc3c76cf94bde0f289edec8973b6
2018-04-01 02:21:40 +02:00

43 lines
1.3 KiB
Nix

{ stdenv, fetchurl, autoreconfHook, pkgconfig, libxkbcommon, pango, which, git
, cairo, glib, libxcb, xcbutil, xcbutilwm, xcbutilxrm, libstartup_notification
, bison, flex, librsvg, check
}:
stdenv.mkDerivation rec {
version = "1.5.1";
name = "rofi-${version}";
src = fetchurl {
url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/${name}.tar.gz";
sha256 = "1dc33zf33z38jcxb0lxpyd31waalpf6d4cd9z5f9m5qphdk1g679";
};
# config.patch may be removed in the future - https://github.com/DaveDavenport/rofi/pull/781
patches = [ ./config.patch ];
preConfigure = ''
patchShebangs "script"
# root not present in build /etc/passwd
sed -i 's/~root/~nobody/g' test/helper-expand.c
'';
postFixup = ''
substituteInPlace "$out"/bin/rofi-theme-selector \
--replace "%ROFIOUT%" "$out/share"
'';
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libxkbcommon pango cairo git bison flex librsvg check
libstartup_notification libxcb xcbutil xcbutilwm xcbutilxrm which
];
doCheck = false;
meta = with stdenv.lib; {
description = "Window switcher, run dialog and dmenu replacement";
homepage = https://davedavenport.github.io/rofi;
license = licenses.mit;
maintainers = with maintainers; [ mbakke garbas ];
platforms = with platforms; unix;
};
}