libzakalwe: init at 1.0.0-unstable-2024-02-26
This commit is contained in:
parent
c07a80fd1c
commit
1068fc949e
58
pkgs/by-name/li/libzakalwe/package.nix
Normal file
58
pkgs/by-name/li/libzakalwe/package.nix
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
stdenv,
|
||||||
|
lib,
|
||||||
|
fetchFromGitLab,
|
||||||
|
unstableGitUpdater,
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "libzakalwe";
|
||||||
|
version = "1.0.0-unstable-2024-02-26";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "hors";
|
||||||
|
repo = "libzakalwe";
|
||||||
|
rev = "c7eba014ba14dc6fa145f6e71e75cca2b65bbc8a";
|
||||||
|
hash = "sha256-2a30ztFnemCgGW/I5S6Dz4eC1Y6K2aV9dPvysvQtBxo=";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"dev"
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch =
|
||||||
|
''
|
||||||
|
substituteInPlace Makefile.in \
|
||||||
|
--replace-fail 'libzakalwe.so' "libzakalwe${stdenv.hostPlatform.extensions.sharedLibrary}"
|
||||||
|
''
|
||||||
|
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
|
substituteInPlace Makefile.in \
|
||||||
|
--replace-fail '-soname' '-install_name'
|
||||||
|
'';
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE";
|
||||||
|
|
||||||
|
# Darwin: Assertion failed at thread_util_test_0:52: tr != NULL
|
||||||
|
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform && (!stdenv.hostPlatform.isDarwin);
|
||||||
|
|
||||||
|
installFlags = [ "PREFIX=$(out)" ];
|
||||||
|
|
||||||
|
preInstall = ''
|
||||||
|
mkdir -p $out/lib
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = unstableGitUpdater { tagPrefix = "v"; };
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Library for functions shared across zakalwe projects";
|
||||||
|
homepage = "https://gitlab.com/hors/libzakalwe";
|
||||||
|
license = lib.licenses.bsd2;
|
||||||
|
maintainers = with lib.maintainers; [ OPNA2608 ];
|
||||||
|
platforms = lib.platforms.unix;
|
||||||
|
};
|
||||||
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user