ocamlPackages.tsdl: 0.9.4 -> 0.9.7
From the release notes: * Require OCaml 4.03 and handle stdlib deprecations. * Drop result depency. * Drop ocb-stubblr dependency The library has also been re-licensed from BSD3 to ISC.
This commit is contained in:
parent
8d1d6454f3
commit
9c3bb10d9a
1 changed files with 5 additions and 5 deletions
|
@ -1,12 +1,12 @@
|
|||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, ctypes, result, SDL2, pkgconfig, ocb-stubblr }:
|
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||
then throw "tsdl is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
let
|
||||
pname = "tsdl";
|
||||
version = "0.9.4";
|
||||
version = "0.9.7";
|
||||
webpage = "https://erratique.ch/software/${pname}";
|
||||
in
|
||||
|
||||
|
@ -15,11 +15,11 @@ stdenv.mkDerivation {
|
|||
|
||||
src = fetchurl {
|
||||
url = "${webpage}/releases/${pname}-${version}.tbz";
|
||||
sha256 = "13af37w2wybx8yzgjr5zz5l50402ldl614qiwphl1q69hig5mag2";
|
||||
sha256 = "1zwv0ixkigh1gzk5n49rwvz2f2m62jdkkqg40j7dclg4gri7691f";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ ocaml findlib ocamlbuild topkg result ocb-stubblr ];
|
||||
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
||||
propagatedBuildInputs = [ SDL2 ctypes ];
|
||||
|
||||
preConfigure = ''
|
||||
|
@ -36,7 +36,7 @@ stdenv.mkDerivation {
|
|||
meta = with stdenv.lib; {
|
||||
homepage = webpage;
|
||||
description = "Thin bindings to the cross-platform SDL library";
|
||||
license = licenses.bsd3;
|
||||
license = licenses.isc;
|
||||
platforms = ocaml.meta.platforms or [];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue