summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/supertux-editor
diff options
context:
space:
mode:
authorMathnerd314 <mathnerd314.gph+hs@gmail.com>2015-08-15 22:05:29 +0000
committerMathnerd314 <mathnerd314.gph+hs@gmail.com>2015-08-17 09:00:18 -0600
commit4ff22bd680f0fe5a05a26ee5e3f01add8e050b17 (patch)
tree1f33b0cc102d2ff6399286c3cba661756579cdbc /pkgs/applications/editors/supertux-editor
parent529596fd316fa6f31a9f39f537939c0bc971543f (diff)
supertux-editor: init at git-2014-08-20
Diffstat (limited to 'pkgs/applications/editors/supertux-editor')
-rw-r--r--pkgs/applications/editors/supertux-editor/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/editors/supertux-editor/default.nix b/pkgs/applications/editors/supertux-editor/default.nix
new file mode 100644
index 000000000000..8dcc718e7bbb
--- /dev/null
+++ b/pkgs/applications/editors/supertux-editor/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, fetchFromGitHub, mono, gtk-sharp, pkgconfig, makeWrapper, gnome, gtk }:
+stdenv.mkDerivation rec {
+ version = "git-2014-08-20";
+ name = "supertux-editor-${version}";
+
+ src = fetchFromGitHub {
+ owner = "SuperTux";
+ repo = "supertux-editor";
+ rev = "0c666e8ccc7daf9e9720fe79abd63f8fa979c5e5";
+ sha256 = "08y5haclgxvcii3hpdvn1ah8qd0f3n8xgxxs8zryj02b8n7cz3vx";
+ };
+
+ buildInputs = [mono gtk-sharp pkgconfig makeWrapper gnome.libglade gtk ];
+
+ installPhase = ''
+ mkdir -p $out/bin $out/lib/supertux-editor
+ cp *.{dll,dll.config,exe} $out/lib/supertux-editor
+ makeWrapper "${mono}/bin/mono" $out/bin/supertux-editor \
+ --add-flags "$out/lib/supertux-editor/supertux-editor.exe" \
+ --prefix MONO_GAC_PREFIX : ${gtk-sharp} \
+ --suffix LD_LIBRARY_PATH : $(echo $NIX_LDFLAGS | sed 's/ -L/:/g;s/ -rpath /:/g;s/-rpath //')
+
+ makeWrapper "${mono}/bin/mono" $out/bin/supertux-editor-debug \
+ --add-flags "--debug $out/lib/supertux-editor/supertux-editor.exe" \
+ --prefix MONO_GAC_PREFIX : ${gtk-sharp} \
+ --suffix LD_LIBRARY_PATH : $(echo $NIX_LDFLAGS | sed 's/ -L/:/g;s/ -rpath /:/g;s/-rpath //')
+ '';
+
+ # Always needed on Mono, otherwise nothing runs
+ dontStrip = true;
+
+ meta = with stdenv.lib; {
+ description = "Level editor for SuperTux";
+ homepage = https://github.com/SuperTux/supertux-editor;
+ license = licenses.gpl3Plus;
+ maintainers = with maintainers; [ mathnerd314 ];
+ platforms = platforms.linux;
+ };
+}