mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
65b5977402
Move the incorrect fix from StormLib to proper place in libtomcrypt.
36 lines
1021 B
Nix
36 lines
1021 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, bzip2, libtomcrypt, zlib, darwin }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "StormLib";
|
|
version = "9.22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ladislav-zezula";
|
|
repo = "StormLib";
|
|
rev = "v${version}";
|
|
sha256 = "1rcdl6ryrr8fss5z5qlpl4prrw8xpbcdgajg2hpp0i7fpk21ymcc";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace "FRAMEWORK DESTINATION /Library/Frameworks" "FRAMEWORK DESTINATION Library/Frameworks"
|
|
'';
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
"-DWITH_LIBTOMCRYPT=ON"
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ bzip2 libtomcrypt zlib ] ++
|
|
lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Carbon ];
|
|
|
|
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 ];
|
|
};
|
|
}
|