nixpkgs-suyu/pkgs/applications/misc/wofi/default.nix

34 lines
1 KiB
Nix
Raw Normal View History

2020-03-24 13:06:45 +01:00
{ stdenv, lib, fetchhg, fetchpatch, pkg-config, meson, ninja, wayland, gtk3, wrapGAppsHook }:
2019-10-30 14:20:05 +01:00
stdenv.mkDerivation rec {
pname = "wofi";
2020-03-24 13:05:35 +01:00
version = "1.1.2";
2019-10-30 14:20:05 +01:00
src = fetchhg {
url = "https://hg.sr.ht/~scoopta/wofi";
2019-12-21 07:16:36 +01:00
rev = "v${version}";
2020-03-24 13:05:35 +01:00
sha256 = "086j5wshawjbwdmmmldivfagc2rr7g5a2gk11l0snqqslm294xsn";
2019-10-30 14:20:05 +01:00
};
2020-03-24 13:06:45 +01:00
nativeBuildInputs = [ pkg-config meson ninja wrapGAppsHook ];
2019-10-30 14:20:05 +01:00
buildInputs = [ wayland gtk3 ];
2020-03-24 13:06:45 +01:00
# Fixes icon bug on NixOS.
# Will need to be removed on next release
# see https://todo.sr.ht/~scoopta/wofi/54
patches = [
(fetchpatch {
url = "https://paste.sr.ht/blob/1cbddafac3806afb203940c029e78ce8390d8f49";
sha256 = "1n4jpmh66p7asjhj0z2s94ny91lmaq4hhh2356nj406vlqr15vbb";
2020-03-24 13:06:45 +01:00
})
];
2019-10-30 14:20:05 +01:00
meta = with lib; {
description = "A launcher/menu program for wlroots based wayland compositors such as sway";
homepage = "https://hg.sr.ht/~scoopta/wofi";
license = licenses.gpl3;
maintainers = with maintainers; [ elyhaka ];
2019-10-30 14:20:05 +01:00
platforms = with platforms; linux;
};
}