2018-01-13 05:57:43 +00:00
|
|
|
{ stdenv, fetchurl, cmake, doxygen
|
|
|
|
, zlib }:
|
2009-11-06 19:25:45 +00:00
|
|
|
|
2018-01-13 05:57:43 +00:00
|
|
|
let
|
|
|
|
generic = version: sha256:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "physfs-${version}";
|
2009-11-06 19:25:45 +00:00
|
|
|
|
2018-01-13 05:57:43 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/downloads/${name}.tar.bz2";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake doxygen ];
|
|
|
|
|
|
|
|
buildInputs = [ zlib ];
|
2009-11-06 19:25:45 +00:00
|
|
|
|
2018-01-13 05:57:43 +00:00
|
|
|
enableParallelBuilding = true;
|
2009-11-06 19:25:45 +00:00
|
|
|
|
2018-01-13 05:57:43 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed s,-Werror,, -i CMakeLists.txt
|
|
|
|
'';
|
2012-03-08 13:34:42 +00:00
|
|
|
|
2018-01-13 05:57:43 +00:00
|
|
|
doInstallCheck = true;
|
|
|
|
|
|
|
|
installCheckPhase = ''
|
|
|
|
./test_physfs --version
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://icculus.org/physfs/;
|
|
|
|
description = "Library to provide abstract access to various archives";
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2009-11-06 19:25:45 +00:00
|
|
|
};
|
2018-01-13 05:57:43 +00:00
|
|
|
|
|
|
|
in {
|
|
|
|
physfs_2 = generic "2.0.3" "0sbbyqzqhyf0g68fcvvv20n3928j0x6ik1njmhn1yigvq2bj11na";
|
|
|
|
physfs = generic "3.0.1" "1wgj2zqpnfbnyyi1i7bq5pshcc9n5cvwlpzp8im67nb8662ryyxp";
|
2009-11-06 19:25:45 +00:00
|
|
|
}
|