2024-02-07 01:22:34 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, libuuid, unstableGitUpdater }:
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "crossguid";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.2.2-unstable-2019-05-29";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graeme-hill";
|
|
|
|
repo = pname;
|
|
|
|
rev = "ca1bf4b810e2d188d04cb6286f957008ee1b7681";
|
|
|
|
hash = "sha256-37tKPDo4lukl/aaDWWSQYfsBNEnDjE7t6OnEZjBhcvQ=";
|
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
patches = [
|
|
|
|
# Fix the build against gcc-13:
|
|
|
|
# https://github.com/graeme-hill/crossguid/pull/67
|
|
|
|
(fetchpatch {
|
|
|
|
name = "gcc-13.patch";
|
|
|
|
url = "https://github.com/graeme-hill/crossguid/commit/1eb9bea38c320b2b588635cffceaaa2a8d434780.patch";
|
|
|
|
hash = "sha256-0qKZUeuNfc3gt+aFeaTt+IexO391GCdjS+9PVJmBKV4=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = lib.optional stdenv.isLinux libuuid;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
|
|
tagPrefix = "v";
|
|
|
|
};
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Lightweight cross platform C++ GUID/UUID library";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/graeme-hill/crossguid";
|
|
|
|
maintainers = with maintainers; [ lilyinstarlight ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|