mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{ lib, stdenv, pkgs, fetchFromGitHub, argparse, mosquitto, cmake, autoconf, automake, libtool, pkg-config, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ebusd";
|
|
version = "23.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "john30";
|
|
repo = "ebusd";
|
|
rev = version;
|
|
sha256 = "2CkcTTxEzVrEPtUVVDxXPPkYqZT6+gsCcfTrt83sFv8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
autoconf
|
|
automake
|
|
libtool
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
argparse
|
|
mosquitto
|
|
openssl
|
|
];
|
|
|
|
patches = [
|
|
./patches/ebusd-cmake.patch
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_INSTALL_SYSCONFDIR=${placeholder "out"}/etc"
|
|
"-DCMAKE_INSTALL_BINDIR=${placeholder "out"}/bin"
|
|
"-DCMAKE_INSTALL_LOCALSTATEDIR=${placeholder "TMPDIR"}"
|
|
];
|
|
|
|
postInstall = ''
|
|
mv $out/usr/bin $out
|
|
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;
|
|
};
|
|
}
|