nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchgit,
5 autoreconfHook,
6 pkg-config,
7 dbus,
8 sysctl,
9 gitUpdater,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "ell";
14 version = "0.78";
15
16 outputs = [
17 "out"
18 "dev"
19 ];
20 separateDebugInfo = true;
21
22 src = fetchgit {
23 url = "https://git.kernel.org/pub/scm/libs/ell/ell.git";
24 rev = version;
25 hash = "sha256-1kw0oiYkEydoMWrECehI5M6VbcL+Y340Pu5QU2F3sbQ=";
26 };
27
28 nativeBuildInputs = [
29 pkg-config
30 autoreconfHook
31 ];
32
33 nativeCheckInputs = [
34 dbus
35 # required as the sysctl test works on some machines
36 sysctl
37 ];
38
39 enableParallelBuilding = true;
40
41 # Runs multiple dbus instances on the same port failing the bind.
42 enableParallelChecking = false;
43
44 # 'unit/test-hwdb' fails in the sandbox as it relies on
45 # '/etc/udev/hwdb.bin' file presence in the sandbox. `nixpkgs` does
46 # not provide it today in any form. Let's skip the test.
47 env.XFAIL_TESTS = "unit/test-hwdb";
48
49 # tests sporadically fail on musl
50 doCheck = !stdenv.hostPlatform.isMusl;
51
52 passthru = {
53 updateScript = gitUpdater {
54 url = "https://git.kernel.org/pub/scm/libs/ell/ell.git";
55 };
56 };
57
58 meta = {
59 homepage = "https://git.kernel.org/pub/scm/libs/ell/ell.git";
60 description = "Embedded Linux Library";
61 longDescription = ''
62 The Embedded Linux* Library (ELL) provides core, low-level functionality for system daemons. It typically has no dependencies other than the Linux kernel, C standard library, and libdl (for dynamic linking). While ELL is designed to be efficient and compact enough for use on embedded Linux platforms, it is not limited to resource-constrained systems.
63 '';
64 changelog = "https://git.kernel.org/pub/scm/libs/ell/ell.git/tree/ChangeLog?h=${version}";
65 license = lib.licenses.lgpl21Plus;
66 platforms = lib.platforms.linux;
67 maintainers = with lib.maintainers; [
68 mic92
69 dtzWill
70 ];
71 };
72}