diff --git a/pkgs/development/libraries/haskell/SDL-image/default.nix b/pkgs/development/libraries/haskell/SDL-image/default.nix new file mode 100644 index 000000000000..4555cf322b84 --- /dev/null +++ b/pkgs/development/libraries/haskell/SDL-image/default.nix @@ -0,0 +1,12 @@ +{cabal, SDL, SDL_image}: + +cabal.mkDerivation (self : { + pname = "SDL-image"; + version = "0.5.2"; + sha256 = "82765f5ed11ef2ad3eb47f59105fe5aecd8de2515d698ef9ea989dc4cec18016"; + propagatedBuildInputs = [SDL SDL_image]; + meta = { + description = "Binding to libSDL_image"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/SDL-mixer/default.nix b/pkgs/development/libraries/haskell/SDL-mixer/default.nix new file mode 100644 index 000000000000..e1bd81d834b3 --- /dev/null +++ b/pkgs/development/libraries/haskell/SDL-mixer/default.nix @@ -0,0 +1,12 @@ +{cabal, SDL, SDL_mixer}: + +cabal.mkDerivation (self : { + pname = "SDL-mixer"; + version = "0.5.5"; + sha256 = "0e1b07a0cbe22eafff7b36f53e4ea840abad50131a867cb70d47beaf902fd185"; + propagatedBuildInputs = [SDL SDL_mixer]; + meta = { + description = "Binding to libSDL_mixer"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/SDL-ttf/default.nix b/pkgs/development/libraries/haskell/SDL-ttf/default.nix new file mode 100644 index 000000000000..89c3a9bad8a6 --- /dev/null +++ b/pkgs/development/libraries/haskell/SDL-ttf/default.nix @@ -0,0 +1,12 @@ +{cabal, SDL, SDL_ttf}: + +cabal.mkDerivation (self : { + pname = "SDL-ttf"; + version = "0.5.5"; + sha256 = "577109d01fca61c103520e7bf33e45af118bcb6d15fcd6da7a8b72c43c69cbb6"; + propagatedBuildInputs = [SDL SDL_ttf]; + meta = { + description = "Binding to libSDL_ttf"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/SDL/default.nix b/pkgs/development/libraries/haskell/SDL/default.nix new file mode 100644 index 000000000000..0ffca624cd4b --- /dev/null +++ b/pkgs/development/libraries/haskell/SDL/default.nix @@ -0,0 +1,12 @@ +{cabal, SDL}: + +cabal.mkDerivation (self : { + pname = "SDL"; + version = "0.5.5"; + sha256 = "cc56c723e03befd99be0a293347690ba7d2cb7fdafcbbc287f067a8cf70af172"; + propagatedBuildInputs = [SDL]; + meta = { + description = "Binding to libSDL"; + }; +}) + diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index a10da675ae59..122cb294c372 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -218,6 +218,26 @@ rec { inherit cabal regexBase; }; + SDLImage = import ../development/libraries/haskell/SDL-image { + inherit cabal SDL; + inherit (pkgs) SDL_image; + }; + + SDLMixer = import ../development/libraries/haskell/SDL-mixer { + inherit cabal SDL; + inherit (pkgs) SDL_mixer; + }; + + SDLTtf = import ../development/libraries/haskell/SDL-ttf { + inherit cabal SDL; + inherit (pkgs) SDL_ttf; + }; + + SDL = import ../development/libraries/haskell/SDL { + inherit cabal; + inherit (pkgs) SDL; + }; + stm = import ../development/libraries/haskell/stm { inherit cabal; };