3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #83283 from Elyhaka/wofi-fix

wofi: 1.1 -> 1.1.2 + fix
This commit is contained in:
Vladyslav M 2020-03-24 19:53:12 +02:00 committed by GitHub
commit 7e62388ed7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,18 +1,28 @@
{ stdenv, lib, fetchhg, pkg-config, meson, ninja, wayland, gtk3 }:
{ stdenv, lib, fetchhg, fetchpatch, pkg-config, meson, ninja, wayland, gtk3, wrapGAppsHook }:
stdenv.mkDerivation rec {
pname = "wofi";
version = "1.1";
version = "1.1.2";
src = fetchhg {
url = "https://hg.sr.ht/~scoopta/wofi";
rev = "v${version}";
sha256 = "0rq6c8fv0h7xj3jw1i01r39dz0f31k7jgf7hpgl6mlsyn0ddc80z";
sha256 = "086j5wshawjbwdmmmldivfagc2rr7g5a2gk11l0snqqslm294xsn";
};
nativeBuildInputs = [ pkg-config meson ninja ];
nativeBuildInputs = [ pkg-config meson ninja wrapGAppsHook ];
buildInputs = [ wayland gtk3 ];
# 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 = "18960y9ajilrwwl6mjnrh6wj0sm4ivczmacck36p2dj9xd0n8vkh";
})
];
meta = with lib; {
description = "A launcher/menu program for wlroots based wayland compositors such as sway";
homepage = "https://hg.sr.ht/~scoopta/wofi";