summary refs log tree commit diff
path: root/pkgs/applications/misc/rofi
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2019-01-01 14:39:16 -0600
committerWill Dietz <w@wdtz.org>2019-01-01 14:50:34 -0600
commite0d8f387d97580e3e9217c594709fc5dc7cc1fc7 (patch)
tree7f77a0c996f3997f47d2e61ebecb079cbf1c151c /pkgs/applications/misc/rofi
parent46e7ce0526f4a956512f8f238eff677f988867b5 (diff)
downloadnixpkgs-e0d8f387d97580e3e9217c594709fc5dc7cc1fc7.tar
nixpkgs-e0d8f387d97580e3e9217c594709fc5dc7cc1fc7.tar.gz
nixpkgs-e0d8f387d97580e3e9217c594709fc5dc7cc1fc7.tar.bz2
nixpkgs-e0d8f387d97580e3e9217c594709fc5dc7cc1fc7.tar.lz
nixpkgs-e0d8f387d97580e3e9217c594709fc5dc7cc1fc7.tar.xz
nixpkgs-e0d8f387d97580e3e9217c594709fc5dc7cc1fc7.tar.zst
nixpkgs-e0d8f387d97580e3e9217c594709fc5dc7cc1fc7.zip
rofi: 1.5.1 -> 1.5.2
https://github.com/DaveDavenport/rofi/releases/tag/1.5.2
Diffstat (limited to 'pkgs/applications/misc/rofi')
-rw-r--r--pkgs/applications/misc/rofi/config.patch54
-rw-r--r--pkgs/applications/misc/rofi/default.nix12
2 files changed, 2 insertions, 64 deletions
diff --git a/pkgs/applications/misc/rofi/config.patch b/pkgs/applications/misc/rofi/config.patch
deleted file mode 100644
index 46982d51e00..00000000000
--- a/pkgs/applications/misc/rofi/config.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector
-index 0646e4bc..f827dbfe 100755
---- a/script/rofi-theme-selector
-+++ b/script/rofi-theme-selector
-@@ -42,34 +42,7 @@ function find_themes()
-     DIRS=${XDG_DATA_DIRS}
-     OLDIFS=${IFS}
-     IFS=:
--    if [ -z "${XDG_DATA_DIRS}" ]
--    then
--        echo "XDG_DATA_DIRS needs to be set for this script to function correctly."
--        echo -n "Using dirs from \$PATH: "
--        DIRS=
--        # Iterate over items in $PATH
--        for p in ${PATH}; do
--            # Remove trailing / if exists.
--            x=${p%/}
--            # remove both /bin and /sbin and /games from end
--            x=${x%/bin}
--            x=${x%/sbin}
--            x=${x%/games}
--            # Add /share
--            x=${x}/share
--            # Check if entry exists Prepend : so :${x}: matches nicely
--            case ":${DIRS}" in
--                *$x:*);;
--                *) DIRS+="$x:";;
--            esac
--        done
--        # Remove trailing :
--        DIRS=${DIRS%:}
--        echo "${DIRS}"
--    fi
--    # Add user dir.
--    DIRS+=":${HOME}/.local/share/"
--    DIRS+=":${HOME}/.config/"
-+    DIRS+=":%ROFIOUT%/"
-     for p in ${DIRS}; do 
-     	p=${p%/}
-         TD=${p}/rofi/themes
-@@ -164,7 +137,12 @@ Current theme: <b>${CUR}</b>"""
- ###
- function set_theme()
- {
--    CDIR="${HOME}/.config/rofi/"
-+    if [ -d "${XDG_CONFIG_HOME}" ]; then
-+      CDIR="${XDG_CONFIG_HOME}/rofi/"
-+    else
-+      CDIR="${HOME}/.config/rofi/"
-+    fi
-+
-     if [ ! -d "${CDIR}" ]
-     then
-         mkdir -p ${CDIR}
diff --git a/pkgs/applications/misc/rofi/default.nix b/pkgs/applications/misc/rofi/default.nix
index 63b047976b3..0edcde12e34 100644
--- a/pkgs/applications/misc/rofi/default.nix
+++ b/pkgs/applications/misc/rofi/default.nix
@@ -4,28 +4,20 @@
 }:
 
 stdenv.mkDerivation rec {
-  version = "1.5.1";
+  version = "1.5.2";
   name = "rofi-unwrapped-${version}";
 
   src = fetchurl {
     url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/rofi-${version}.tar.gz";
-    sha256 = "1dc33zf33z38jcxb0lxpyd31waalpf6d4cd9z5f9m5qphdk1g679";
+    sha256 = "1rczxz6l32vnclarzga1sm1d5iq9rfscb9j7f8ih185n59hf0517";
   };
 
-  # 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