Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
cmake,
|
|
libuuid,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "crossguid";
|
|
version = "0.2.2-unstable-2019-05-29";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "graeme-hill";
|
|
repo = "crossguid";
|
|
rev = "ca1bf4b810e2d188d04cb6286f957008ee1b7681";
|
|
hash = "sha256-37tKPDo4lukl/aaDWWSQYfsBNEnDjE7t6OnEZjBhcvQ=";
|
|
};
|
|
|
|
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=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = lib.optional stdenv.hostPlatform.isLinux libuuid;
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
tagPrefix = "v";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight cross platform C++ GUID/UUID library";
|
|
license = licenses.mit;
|
|
homepage = "https://github.com/graeme-hill/crossguid";
|
|
maintainers = [ ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|