lol
1{ stdenv, makeWrapper, glibc, fetchgit, pkgconfig, SDL, SDL_image, SDL_stretch,
2 mesa, mesa_glu, freeglut, gst_all_1, gtk2, file, imagemagick }:
3
4stdenv.mkDerivation {
5 name = "3dfsb-1.0";
6
7 meta = with stdenv.lib; {
8 description = "3D File System Browser - cleaned up and improved fork of the old tdfsb which runs on GNU/Linux and should also run on BeOS/Haiku and FreeBSD";
9 homepage = "https://github.com/tomvanbraeckel/3dfsb";
10 license = licenses.gpl2;
11 platforms = platforms.linux;
12 maintainers = with maintainers; [ eduarrrd ];
13 };
14
15 src = fetchgit {
16 url = "git://github.com/tomvanbraeckel/3dfsb.git";
17 rev = "a69a9dfad42acbe2816328d11b58b65f4186c4c5";
18 sha256 = "191ndg4vfanjfx4qh186sszyy4pphx3l41rchins9mg8y5rm5ffp";
19 };
20
21 buildInputs = with gst_all_1; [ makeWrapper glibc pkgconfig SDL SDL_image SDL_stretch mesa_glu freeglut gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav gtk2 file imagemagick ];
22
23 buildPhase = "sh ./compile.sh";
24 dontStrip = true;
25
26 installPhase = "mkdir -p $out/bin/ && cp 3dfsb $out/bin/";
27
28 preFixup = ''
29 wrapProgram $out/bin/3dfsb \
30 --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
31 '';
32}