Files
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

42 lines
948 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libmodule";
version = "5.0.2";
src = fetchFromGitHub {
owner = "FedeDP";
repo = "libmodule";
rev = finalAttrs.version;
sha256 = "sha256-93ItLKThtT9JRc+X/bRm06pugsN31HAF3qTUqqCu6nE=";
};
nativeBuildInputs = [
cmake
pkg-config
];
# https://github.com/FedeDP/libmodule/issues/7
postPatch = ''
substituteInPlace Extra/libmodule.pc.in \
--replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
'';
meta = {
description = "C simple and elegant implementation of an actor library";
homepage = "https://github.com/FedeDP/libmodule";
platforms = lib.platforms.linux;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
eadwu
];
};
})