nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 29 lines 771 B view raw
1{ lib, stdenv, fetchFromGitHub, cmake, bzip2, libtomcrypt, zlib }: 2 3stdenv.mkDerivation rec { 4 pname = "StormLib"; 5 version = "9.22"; 6 7 src = fetchFromGitHub { 8 owner = "ladislav-zezula"; 9 repo = "StormLib"; 10 rev = "v${version}"; 11 sha256 = "1rcdl6ryrr8fss5z5qlpl4prrw8xpbcdgajg2hpp0i7fpk21ymcc"; 12 }; 13 14 cmakeFlags = [ 15 "-DBUILD_SHARED_LIBS=ON" 16 "-DWITH_LIBTOMCRYPT=ON" 17 ]; 18 19 nativeBuildInputs = [ cmake ]; 20 buildInputs = [ bzip2 libtomcrypt zlib ]; 21 22 meta = with lib; { 23 homepage = "https://github.com/ladislav-zezula/StormLib"; 24 license = licenses.mit; 25 description = "An open-source project that can work with Blizzard MPQ archives"; 26 platforms = platforms.all; 27 maintainers = with maintainers; [ aanderse karolchmist ]; 28 }; 29}