diff options
author | Aaron Andersen <aaron@fosslib.net> | 2021-11-03 22:01:03 -0400 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2021-11-07 07:48:37 -0500 |
commit | beed35c41747f033f64cc1d7def4220837140271 (patch) | |
tree | 0044706d489e6d9647cc5f6b729699351a2da254 /pkgs/development/libraries/StormLib | |
parent | ea15d93aa7428ae2c12d4ff5c154795eecce9460 (diff) |
StormLib: init at 9.22
Diffstat (limited to 'pkgs/development/libraries/StormLib')
-rw-r--r-- | pkgs/development/libraries/StormLib/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/libraries/StormLib/default.nix b/pkgs/development/libraries/StormLib/default.nix new file mode 100644 index 0000000000000..0bf9ba63dc482 --- /dev/null +++ b/pkgs/development/libraries/StormLib/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, cmake, bzip2, libtomcrypt, zlib }: + +stdenv.mkDerivation rec { + pname = "StormLib"; + version = "9.22"; + + src = fetchFromGitHub { + owner = "ladislav-zezula"; + repo = "StormLib"; + rev = "v${version}"; + sha256 = "1rcdl6ryrr8fss5z5qlpl4prrw8xpbcdgajg2hpp0i7fpk21ymcc"; + }; + + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" + "-DWITH_LIBTOMCRYPT=ON" + ]; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ bzip2 libtomcrypt zlib ]; + + meta = with lib; { + homepage = "https://github.com/ladislav-zezula/StormLib"; + license = licenses.mit; + description = "An open-source project that can work with Blizzard MPQ archives"; + platforms = platforms.all; + maintainers = with maintainers; [ aanderse karolchmist ]; + }; +} |