1 { lib, stdenv, fetchFromGitHub, libuuid }:
3 stdenv.mkDerivation rec {
4 name = "lib" + pname + "-" + version;
6 version = "2016-02-21";
8 src = fetchFromGitHub {
11 rev = "8f399e8bd4252be9952f3dfa8199924cc8487ca4";
12 sha256 = "1i29y207qqddvaxbn39pk2fbh3gx8zvdprfp35wasj9rw2wjk3s9";
15 buildInputs = [ libuuid ];
18 $CXX -c guid.cpp -o guid.o $CXXFLAGS -std=c++11 -DGUID_LIBUUID
19 $AR rvs libcrossguid.a guid.o
22 mkdir -p $out/{lib,include}
23 install -D -m644 libcrossguid.a "$out/lib/libcrossguid.a"
24 install -D -m644 guid.h "$out/include/guid.h"
28 description = "Lightweight cross platform C++ GUID/UUID library";
29 license = licenses.mit;
30 maintainers = with maintainers; [ edwtjo ];
31 homepage = "https://github.com/graeme-hill/crossguid";
32 platforms = with platforms; linux;