2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rofi, gnused }:
|
2016-05-15 06:16:48 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
rev = "168efd2608fdb88b1aff3e0244bda8402169f207";
|
|
|
|
name = "rofi-menugen-2015-12-28-${builtins.substring 0 7 rev}";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "octotep";
|
|
|
|
repo = "menugen";
|
|
|
|
inherit rev;
|
|
|
|
sha256 = "09fk9i6crw772qlc5zld35pcff1jq4jcag0syial2q000fbpjx5m";
|
|
|
|
};
|
|
|
|
patchPhase = ''
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp menugen $out/bin/rofi-menugen
|
|
|
|
cp menugenbase $out/bin/rofi-menugenbase
|
|
|
|
'';
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-05-15 06:16:48 +02:00
|
|
|
description = "Generates menu based applications using rofi";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/octotep/menugen";
|
2019-07-03 11:27:39 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-05-15 06:16:48 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|