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
42 lines
1015 B
Nix
42 lines
1015 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "sse2neon";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DLTcollab";
|
|
repo = "sse2neon";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-vb9k+KjiGodVngza0R18LjfPTlsqFbzqXZqefm6KHj0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# remove warning about gcc < 10
|
|
substituteInPlace sse2neon.h --replace-fail "#warning \"GCC versions" "// "
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
dontInstall = true;
|
|
# use postBuild instead of installPhase, because the build
|
|
# in itself doesn't produce any ($out) output
|
|
postBuild = ''
|
|
mkdir -p $out/lib
|
|
install -m444 sse2neon.h $out/lib/
|
|
'';
|
|
|
|
meta = {
|
|
description = "Mono library that provides a GDI+-compatible API on non-Windows operating systems";
|
|
homepage = "https://www.mono-project.com/docs/gui/libgdiplus/";
|
|
platforms = lib.platforms.unix;
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.gador ];
|
|
};
|
|
})
|