2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rofi, gnused }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "rofi-menugen";
|
|
|
|
version = "unstable-2015-12-28";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "octotep";
|
|
|
|
repo = "menugen";
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = "168efd2608fdb88b1aff3e0244bda8402169f207";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "09fk9i6crw772qlc5zld35pcff1jq4jcag0syial2q000fbpjx5m";
|
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2020-04-24 23:36:52 +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-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp menugen $out/bin/rofi-menugen
|
|
|
|
cp menugenbase $out/bin/rofi-menugenbase
|
|
|
|
'';
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generates menu based applications using rofi";
|
|
|
|
homepage = "https://github.com/octotep/menugen";
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|