8 stdenv.mkDerivation rec {
9 name = "lib" + pname + "-" + version;
11 version = "2016-02-21";
13 src = fetchFromGitHub {
14 owner = "graeme-hill";
16 rev = "8f399e8bd4252be9952f3dfa8199924cc8487ca4";
17 sha256 = "1i29y207qqddvaxbn39pk2fbh3gx8zvdprfp35wasj9rw2wjk3s9";
20 buildInputs = [ libuuid ];
23 $CXX -c guid.cpp -o guid.o $CXXFLAGS -std=c++11 -DGUID_LIBUUID
24 $AR rvs libcrossguid.a guid.o
27 mkdir -p $out/{lib,include}
28 install -D -m644 libcrossguid.a "$out/lib/libcrossguid.a"
29 install -D -m644 guid.h "$out/include/guid.h"
33 description = "Lightweight cross platform C++ GUID/UUID library";
34 license = licenses.mit;
35 maintainers = with maintainers; [ edwtjo ];
36 homepage = "https://github.com/graeme-hill/crossguid";
37 platforms = with platforms; linux;