2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rofi, gnused }:
|
2016-05-15 04:16:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 13:50:48 +00:00
|
|
|
pname = "rofi-menugen";
|
2021-11-08 19:34:07 +00:00
|
|
|
version = "unstable-2015-12-28";
|
2021-11-07 13:50:48 +00:00
|
|
|
|
2016-05-15 04:16:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "octotep";
|
|
|
|
repo = "menugen";
|
2021-11-08 19:34:07 +00:00
|
|
|
rev = "168efd2608fdb88b1aff3e0244bda8402169f207";
|
2016-05-15 04:16:48 +00:00
|
|
|
sha256 = "09fk9i6crw772qlc5zld35pcff1jq4jcag0syial2q000fbpjx5m";
|
|
|
|
};
|
2021-11-08 19:34:07 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2016-05-15 04:16:48 +00:00
|
|
|
sed -i -e "s|menugenbase|$out/bin/rofi-menugenbase|" menugen
|
|
|
|
sed -i -e "s|rofi |${rofi}/bin/rofi |" menugen
|
|
|
|
sed -i -e "s|sed |${gnused}/bin/sed |" menugenbase
|
|
|
|
'';
|
2021-11-08 19:34:07 +00:00
|
|
|
|
2016-05-15 04:16:48 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp menugen $out/bin/rofi-menugen
|
|
|
|
cp menugenbase $out/bin/rofi-menugenbase
|
|
|
|
'';
|
2021-11-08 19:34:07 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-05-15 04:16:48 +00:00
|
|
|
description = "Generates menu based applications using rofi";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/octotep/menugen";
|
2019-07-03 09:27:39 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-05-15 04:16:48 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|