blob: c53697d7712c220ad2e31d4f69953e936a12f4ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
lib,
stdenv,
fetchFromGitHub,
cmake,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dylib";
version = "3.0.1";
src = fetchFromGitHub {
owner = "martin-olivier";
repo = "dylib";
tag = "v${finalAttrs.version}";
hash = "sha256-Ub45d7KDcN0d/3CXgvyZoLQfHM72m1p4ggvF9ibR9No=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DDYLIB_BUILD_TESTS=OFF"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "C++ cross-platform wrapper around dynamic loading of shared libraries";
homepage = "https://github.com/martin-olivier/dylib";
changelog = "https://github.com/martin-olivier/dylib/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
platforms = lib.platforms.unix ++ lib.platforms.windows;
maintainers = with lib.maintainers; [ ZZBaron ];
};
})
|