Skip to content

Commit 860eea0

Browse files
committed
gmrun: 0.9.2 -> 1.4w
gmrun has been rewritten while maintaining compatibility with previous version. The original author acknowledged this fork and grant permission to modify the license, see wdlkmpx/gmrun#2
1 parent e7d4c70 commit 860eea0

File tree

4 files changed

+22
-156
lines changed

4 files changed

+22
-156
lines changed

pkgs/by-name/gm/gmrun/find-config-file-in-system-etc-dir.patch

Lines changed: 0 additions & 18 deletions
This file was deleted.

pkgs/by-name/gm/gmrun/gcc43.patch

Lines changed: 0 additions & 51 deletions
This file was deleted.

pkgs/by-name/gm/gmrun/gmrun-0.9.2-xdg.patch

Lines changed: 0 additions & 58 deletions
This file was deleted.

pkgs/by-name/gm/gmrun/package.nix

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,48 @@
11
{
22
lib,
33
stdenv,
4-
fetchurl,
5-
glib,
6-
gtk2,
4+
fetchFromGitHub,
75
pkg-config,
8-
popt,
6+
wrapGAppsHook3,
97
}:
108

11-
let
12-
version = "0.9.2";
13-
in
14-
15-
stdenv.mkDerivation rec {
9+
stdenv.mkDerivation (finalAttrs: {
1610
pname = "gmrun";
17-
inherit version;
11+
version = "1.4w";
1812

19-
src = fetchurl {
20-
url = "mirror://sourceforge/gmrun/${pname}-${version}.tar.gz";
21-
sha256 = "180z6hbax1qypy5cyy2z6nn7fzxla4ib47ck8mqwr714ag77na8p";
13+
src = fetchFromGitHub {
14+
owner = "wdlkmpx";
15+
repo = "gmrun";
16+
rev = "refs/tags/${finalAttrs.version}";
17+
hash = "sha256-sp+Atod9ZKVF8sxNWIMrlewqZAGnoLo2mZUNkCtSkec=";
2218
};
2319

24-
nativeBuildInputs = [ pkg-config ];
25-
buildInputs = [
26-
glib
27-
gtk2
28-
popt
20+
nativeBuildInputs = [
21+
pkg-config
22+
wrapGAppsHook3
2923
];
3024

3125
doCheck = true;
3226

3327
enableParallelBuilding = true;
3428

35-
patches = [
36-
./gcc43.patch
37-
./find-config-file-in-system-etc-dir.patch
38-
./gmrun-0.9.2-xdg.patch
39-
];
29+
# Problem with component size on wayland
30+
preFixup = ''
31+
gappsWrapperArgs+=(--set-default GDK_BACKEND x11)
32+
'';
4033

41-
meta = with lib; {
34+
meta = {
4235
description = "Gnome Completion-Run Utility";
4336
longDescription = ''
4437
A simple program which provides a "run program" window, featuring a bash-like TAB completion.
4538
It uses GTK interface.
4639
Also, supports CTRL-R / CTRL-S / "!" for searching through history.
4740
Running commands in a terminal with CTRL-Enter. URL handlers.
4841
'';
49-
homepage = "https://sourceforge.net/projects/gmrun/";
50-
license = licenses.gpl2;
51-
maintainers = [ ];
52-
platforms = platforms.all;
42+
homepage = "https://github.com/wdlkmpx/gmrun";
43+
license = lib.licenses.isc;
44+
maintainers = with lib.maintainers; [ aleksana ];
45+
platforms = lib.platforms.linux;
5346
mainProgram = "gmrun";
5447
};
55-
}
48+
})

0 commit comments

Comments
 (0)