depot/third_party/nixpkgs/pkgs/development/libraries/physfs/default.nix
Default email eeb71630af Project import generated by Copybara.
GitOrigin-RevId: 636051e353461f073ac55d5d42c1ed062a345046
2022-11-02 23:02:43 +01:00

39 lines
1,023 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, doxygen, zlib, Foundation }:
let
generic = version: sha256:
stdenv.mkDerivation rec {
pname = "physfs";
inherit version;
src = fetchFromGitHub {
owner = "icculus";
repo = "physfs";
rev = "release-${version}";
inherit sha256;
};
nativeBuildInputs = [ cmake doxygen ];
buildInputs = [ zlib ]
++ lib.optionals stdenv.isDarwin [ Foundation ];
doInstallCheck = true;
installCheckPhase = ''
./test_physfs --version
'';
meta = with lib; {
homepage = "https://icculus.org/physfs/";
description = "Library to provide abstract access to various archives";
changelog = "https://github.com/icculus/physfs/releases/tag/release-${version}";
license = licenses.zlib;
platforms = platforms.all;
};
};
in {
physfs_2 = generic "2.1.1" "sha256-hmS/bfszit3kD6B2BjnuV50XKueq2GcRaqyAKLkvfLc=";
physfs = generic "3.2.0" "sha256-FhFIshX7G3uHEzvHGlDIrXa7Ux6ThQNzVssaENs+JMw=";
}