diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-05-01 21:38:17 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-06-04 08:19:08 -0300 |
commit | 482e1a5a4b55bc5d40aebd3c97d5af62bb096885 (patch) | |
tree | 65344a953d35ef2a963ffba7e5f56d7b374c13d8 /pkgs/by-name/sd | |
parent | f3d1af989411848587e7771f4156c4425bc02414 (diff) |
SDL_sound: migrate to by-name
Diffstat (limited to 'pkgs/by-name/sd')
-rw-r--r-- | pkgs/by-name/sd/SDL_sound/package.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/by-name/sd/SDL_sound/package.nix b/pkgs/by-name/sd/SDL_sound/package.nix new file mode 100644 index 0000000000000..bdc97e98f3414 --- /dev/null +++ b/pkgs/by-name/sd/SDL_sound/package.nix @@ -0,0 +1,22 @@ +{ stdenv, lib, fetchurl, SDL, libvorbis, flac, libmikmod }: + +stdenv.mkDerivation rec { + pname = "SDL_sound"; + version = "1.0.3"; + + src = fetchurl { + url = "https://icculus.org/SDL_sound/downloads/${pname}-${version}.tar.gz"; + sha256 = "1pz6g56gcy7pmmz3hhych3iq9jvinml2yjz15fjqjlj8pc5zv69r"; + }; + + buildInputs = [ SDL libvorbis flac libmikmod ]; + + configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest"; + + meta = with lib; { + description = "SDL sound library"; + platforms = platforms.unix; + license = licenses.lgpl21; + homepage = "https://www.icculus.org/SDL_sound/"; + }; +} |