lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05-pre 35 lines 959 B view raw
1{ lib, stdenv, fetchFromGitHub, libuuid }: 2 3stdenv.mkDerivation rec { 4 name = "lib" + pname + "-" + version; 5 pname = "crossguid"; 6 version = "2016-02-21"; 7 8 src = fetchFromGitHub { 9 owner = "graeme-hill"; 10 repo = pname; 11 rev = "8f399e8bd4252be9952f3dfa8199924cc8487ca4"; 12 sha256 = "1i29y207qqddvaxbn39pk2fbh3gx8zvdprfp35wasj9rw2wjk3s9"; 13 }; 14 15 buildInputs = [ libuuid ]; 16 17 buildPhase = '' 18 $CXX -c guid.cpp -o guid.o $CXXFLAGS -std=c++11 -DGUID_LIBUUID 19 $AR rvs libcrossguid.a guid.o 20 ''; 21 installPhase = '' 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" 25 ''; 26 27 meta = with lib; { 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; 33 }; 34 35}