libui: 3.1a -> 4.1a

This commit is contained in:
Herwig Hochleitner 2019-08-10 01:45:19 +02:00
parent 2c410e25de
commit 6c7029e7ce

View File

@ -1,21 +1,22 @@
{ stdenv, fetchgit, cmake, pkgconfig, gtk3, Cocoa }: { stdenv, fetchFromGitHub, cmake, pkgconfig, gtk3, Cocoa }:
let let
shortName = "libui"; shortName = "libui";
version = "3.1a"; version = "4.1a";
backend = if stdenv.isDarwin then "darwin" else "unix"; backend = if stdenv.isDarwin then "darwin" else "unix";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "${shortName}-${version}"; name = "${shortName}-${version}";
src = fetchgit { src = fetchFromGitHub {
url = "https://github.com/andlabs/libui.git"; owner = "andlabs";
rev = "6ebdc96b93273c3cedf81159e7843025caa83058"; repo = "libui";
sha256 = "1lpbfa298c61aarlzgp7vghrmxg1274pzxh1j9isv8x758gk6mfn"; rev = "alpha4.1";
sha256 = "0bm6xvqk4drg2kw6d304x6mlfal7gh8mbl5a9f0509smmdzgdkwm";
}; };
nativeBuildInputs = [ cmake pkgconfig ]; nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = stdenv.lib.optional stdenv.isLinux gtk3 propagatedBuildInputs = stdenv.lib.optional stdenv.isLinux gtk3
++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ]; ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
preConfigure = stdenv.lib.optionalString stdenv.isDarwin '' preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''