Skip to content

Commit 6fef322

Browse files
olejorgenbMic92
authored andcommittedMay 11, 2017
sgtpuzzles: fix broken gtk3 file dialog (#25694)
include wrapGAppsHook for file dialog to work
1 parent fb0410c commit 6fef322

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed
 

‎pkgs/games/sgt-puzzles/default.nix

+17-15
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
{stdenv, gtk3, pkgconfig, libX11, perl, fetchurl, automake115x, autoconf}:
2-
let
1+
{ stdenv, fetchurl
2+
, gtk3, libX11
3+
, makeWrapper, pkgconfig, perl, autoreconfHook, wrapGAppsHook
4+
}:
5+
6+
stdenv.mkDerivation rec {
7+
name = "sgt-puzzles-r${version}";
38
version = "20170228.1f613ba";
4-
buildInputs = [
5-
gtk3 pkgconfig libX11 perl automake115x autoconf
6-
];
7-
in
8-
stdenv.mkDerivation {
9+
910
src = fetchurl {
1011
url = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${version}.tar.gz";
1112
sha256 = "02nqc18fhvxr545wgk55ly61fi0a06q61ljzwadprqxa1n0g0fz5";
1213
};
13-
name = "sgt-puzzles-r" + version;
14-
inherit buildInputs;
14+
15+
nativeBuildInputs = [ autoreconfHook makeWrapper pkgconfig perl wrapGAppsHook ];
16+
17+
buildInputs = [ gtk3 libX11 ];
18+
1519
makeFlags = ["prefix=$(out)" "gamesdir=$(out)/bin"];
1620
preInstall = ''
1721
mkdir -p "$out"/{bin,share/doc/sgtpuzzles}
1822
cp gamedesc.txt LICENCE README "$out/share/doc/sgtpuzzles"
19-
cp LICENCE "$out/share/doc/sgtpuzzles/LICENSE"
2023
'';
2124
# SGT Puzzles use generic names like net, map, etc.
2225
# Create symlinks with sgt-puzzle- prefix for possibility of
@@ -33,12 +36,11 @@ stdenv.mkDerivation {
3336
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -Wno-error"
3437
cp Makefile.gtk Makefile
3538
'';
36-
meta = {
37-
inherit version;
39+
meta = with stdenv.lib; {
3840
description = "Simon Tatham's portable puzzle collection";
39-
license = stdenv.lib.licenses.mit ;
40-
maintainers = [stdenv.lib.maintainers.raskin];
41-
platforms = stdenv.lib.platforms.linux;
41+
license = licenses.mit;
42+
maintainers = [ maintainers.raskin ];
43+
platforms = platforms.linux;
4244
homepage = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/";
4345
};
4446
}

0 commit comments

Comments
 (0)
Please sign in to comment.