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