summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL2_net
diff options
context:
space:
mode:
authorCray Elliott <MP2E@archlinux.us>2014-08-03 10:49:32 -0700
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-08-24 10:21:47 +0200
commit85cdd7ce334442bab5af03b5072f29ce03f98d3a (patch)
tree06cfec5bc6bcba370de92b77faef32ee5d4fd7fc /pkgs/development/libraries/SDL2_net
parent549fae867626b51ec5c07b31bb0649470a3d02b1 (diff)
downloadnixpkgs-85cdd7ce334442bab5af03b5072f29ce03f98d3a.tar
nixpkgs-85cdd7ce334442bab5af03b5072f29ce03f98d3a.tar.gz
nixpkgs-85cdd7ce334442bab5af03b5072f29ce03f98d3a.tar.bz2
nixpkgs-85cdd7ce334442bab5af03b5072f29ce03f98d3a.tar.lz
nixpkgs-85cdd7ce334442bab5af03b5072f29ce03f98d3a.tar.xz
nixpkgs-85cdd7ce334442bab5af03b5072f29ce03f98d3a.tar.zst
nixpkgs-85cdd7ce334442bab5af03b5072f29ce03f98d3a.zip
Add SDL2_net v2.0.0
Diffstat (limited to 'pkgs/development/libraries/SDL2_net')
-rw-r--r--pkgs/development/libraries/SDL2_net/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/libraries/SDL2_net/default.nix b/pkgs/development/libraries/SDL2_net/default.nix
new file mode 100644
index 00000000000..e41546512e9
--- /dev/null
+++ b/pkgs/development/libraries/SDL2_net/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, fetchurl, SDL2 }:
+
+stdenv.mkDerivation rec {
+  name = "SDL2_net-2.0.0";
+
+  src = fetchurl {
+    url = "http://www.libsdl.org/projects/SDL_net/release/${name}.tar.gz";
+    sha256 = "d715be30783cc99e541626da52079e308060b21d4f7b95f0224b1d06c1faacab";
+  };
+
+  propagatedBuildInputs = [SDL2];
+
+  postInstall = "ln -s $out/include/SDL2/SDL_net.h $out/include/";
+
+  meta = with stdenv.lib; {
+    description = "SDL multiplatform networking library";
+    homepage = https://www.libsdl.org/projects/SDL_net;
+    license = licenses.zlib;
+    maintainers = [ maintainers.MP2E ];
+    platforms = platforms.all;
+  };
+}