Merge pull request #208209 from wegank/minilibx
minilibx: init at unstable-2021-10-30
This commit is contained in:
commit
22b07705b2
62
pkgs/development/libraries/minilibx/default.nix
Normal file
62
pkgs/development/libraries/minilibx/default.nix
Normal file
|
@ -0,0 +1,62 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, libX11
|
||||
, libXext
|
||||
, unstableGitUpdater
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "minilibx";
|
||||
version = "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 = "A 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;
|
||||
};
|
||||
}
|
|
@ -9571,6 +9571,8 @@ with pkgs;
|
|||
|
||||
minijail-tools = python3.pkgs.callPackage ../tools/system/minijail/tools.nix { };
|
||||
|
||||
minilibx = callPackage ../development/libraries/minilibx { };
|
||||
|
||||
minixml = callPackage ../development/libraries/minixml { };
|
||||
|
||||
mir-qualia = callPackage ../tools/text/mir-qualia {
|
||||
|
|
Loading…
Reference in a new issue