1 { lib, stdenv, fetchFromGitLab, pkg-config, xorg, imlib2, makeWrapper }:
3 stdenv.mkDerivation rec {
6 src = fetchFromGitLab {
7 domain = "salsa.debian.org";
10 rev = "debian/${version}";
11 sha256 = "0rm7w78d6qajq4fvi4agyqm0c70f3c1i0cy2jdb6kqql2k8w78qy";
14 nativeBuildInputs = [ pkg-config makeWrapper ];
15 buildInputs = [ imlib2 xorg.libX11 xorg.libXext ];
17 patches = [ "${src}/debian/patches/10_libXext.patch" "${src}/debian/patches/wrong-man-page-section.patch" ];
20 sed -i "s:/usr/games/xteddy:$out/bin/xteddy:" xtoys
21 sed -i "s:/usr/share/xteddy:$out/share/xteddy:" xtoys
25 cp -R images $out/share/images
26 # remove broken test script
27 rm $out/bin/xteddy_test
31 # this is needed, because xteddy expects images to reside
32 # in the current working directory
33 wrapProgram $out/bin/xteddy --chdir "$out/share/images/"
37 description = "Cuddly teddy bear for your X desktop";
38 homepage = "https://weber.itn.liu.se/~stegu/xteddy/";
39 license = licenses.gpl2;
40 maintainers = [ maintainers.xaverdh ];
41 platforms = platforms.linux;