nixpkgs/pkgs/development/libraries/physfs/default.nix

43 lines
955 B
Nix
Raw Normal View History

2018-01-13 05:57:43 +00:00
{ stdenv, fetchurl, cmake, doxygen
, zlib }:
2018-01-13 05:57:43 +00:00
let
generic = version: sha256:
stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "physfs";
inherit version;
2018-01-13 05:57:43 +00:00
src = fetchurl {
2019-08-13 22:52:01 +01:00
url = "${meta.homepage}/downloads/${pname}-${version}.tar.bz2";
2018-01-13 05:57:43 +00:00
inherit sha256;
};
nativeBuildInputs = [ cmake doxygen ];
buildInputs = [ zlib ];
2018-01-13 05:57:43 +00:00
enableParallelBuilding = true;
2018-01-13 05:57:43 +00:00
patchPhase = ''
sed s,-Werror,, -i CMakeLists.txt
'';
2018-01-13 05:57:43 +00:00
doInstallCheck = true;
installCheckPhase = ''
./test_physfs --version
'';
meta = with stdenv.lib; {
homepage = "http://icculus.org/physfs/";
2018-01-13 05:57:43 +00:00
description = "Library to provide abstract access to various archives";
license = licenses.free;
platforms = platforms.linux;
};
};
2018-01-13 05:57:43 +00:00
in {
physfs_2 = generic "2.0.3" "0sbbyqzqhyf0g68fcvvv20n3928j0x6ik1njmhn1yigvq2bj11na";
physfs = generic "3.0.2" "0qzqz4r88gvd8m7sh2z5hvqcr0jfr4wb2f77c19xycyn0rigfk9h";
}