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
37 lines
875 B
Nix
37 lines
875 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libnoise";
|
|
version = "0-unstable-2024-09-01";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qknight";
|
|
repo = "libnoise";
|
|
rev = "9ce0737b55812f7de907e86dc633724524e3a8e8";
|
|
hash = "sha256-coazd4yedH69b+TOSTFV1CEzN0ezjoGyOaYR9QBhp2E=";
|
|
};
|
|
|
|
# cmake 4 compatibility
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt --replace-fail "cmake_minimum_required(VERSION 3.0)" "cmake_minimum_required(VERSION 3.10)"
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
|
|
];
|
|
|
|
meta = {
|
|
description = "Portable, open-source, coherent noise-generating library for C++";
|
|
homepage = "https://github.com/qknight/libnoise";
|
|
license = lib.licenses.lgpl21;
|
|
maintainers = with lib.maintainers; [ liberodark ];
|
|
};
|
|
})
|