Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
69 lines
1.1 KiB
Nix
69 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
pkgs,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
argparse,
|
|
mosquitto,
|
|
cmake,
|
|
autoconf,
|
|
automake,
|
|
libtool,
|
|
pkg-config,
|
|
openssl,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ebusd";
|
|
version = "25.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "john30";
|
|
repo = "ebusd";
|
|
rev = version;
|
|
sha256 = "sha256-rj0Wkfk3Tpm58fbCUkgCdHt5MvW+tGgDyUd5COXfBc0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
autoconf
|
|
automake
|
|
libtool
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
argparse
|
|
mosquitto
|
|
openssl
|
|
];
|
|
|
|
patches = [
|
|
./patches/ebusd-cmake.patch
|
|
];
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/usr/bin
|
|
'';
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_INSTALL_SYSCONFDIR=${placeholder "out"}/etc"
|
|
"-DCMAKE_INSTALL_BINDIR=${placeholder "out"}/bin"
|
|
"-DCMAKE_INSTALL_LOCALSTATEDIR=${placeholder "TMPDIR"}"
|
|
];
|
|
|
|
postInstall = ''
|
|
rmdir $out/usr/bin
|
|
rmdir $out/usr
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "ebusd";
|
|
homepage = "https://github.com/john30/ebusd";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ nathan-gs ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|