Files
nixpkgs/pkgs/by-name/mi/minilibx/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

68 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
libX11,
libXext,
unstableGitUpdater,
}:
stdenv.mkDerivation {
pname = "minilibx";
version = "0-unstable-2021-10-30";
src = fetchFromGitHub {
owner = "42Paris";
repo = "minilibx-linux";
rev = "7dc53a411a7d4ae286c60c6229bd1e395b0efb82";
hash = "sha256-aRYMpaPC7dC6EHmmXugvwcQnaizRCQZKFcQX0K2MLM4=";
};
outputs = [
"out"
"dev"
"man"
];
nativeBuildInputs = [
installShellFiles
];
buildInputs = [
libX11
libXext
];
dontConfigure = true;
makefile = "Makefile.mk";
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
];
installPhase = ''
runHook preInstall
mkdir -p $out/{include,lib}
cp mlx*.h $out/include
cp libmlx*.a $out/lib
installManPage man/man*/*
runHook postInstall
'';
passthru = {
updateScript = unstableGitUpdater { };
};
meta = with lib; {
description = "Simple X-Window (X11R6) programming API in C";
homepage = "https://github.com/42Paris/minilibx-linux";
license = licenses.bsd2;
maintainers = with maintainers; [ wegank ];
platforms = platforms.unix;
};
}