morse_cli: init at 1.16.4
Add Morse Micro userspace control utility package version 1.16.4. Signed-off-by: Govind Singh <govind.sk85@gmail.com> Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
This commit is contained in:
committed by
Jörg Thalheim
parent
f8196775f5
commit
715e1b2e1a
@@ -0,0 +1,55 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
openssl,
|
||||
libnl,
|
||||
zstd,
|
||||
libusb1,
|
||||
pkg-config,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "morse-cli";
|
||||
version = "1.16.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MorseMicro";
|
||||
repo = "morse_cli";
|
||||
tag = version;
|
||||
hash = "sha256-EhrKMMbWJ6gweAt2EudyO7vHZ9ITjRYagE4k+QuUnOo=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
libnl
|
||||
libusb1
|
||||
zstd
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [
|
||||
"-I${libnl.dev}/include/libnl3"
|
||||
"-I${libusb1.dev}/include/libusb-1.0"
|
||||
"-Wno-error"
|
||||
];
|
||||
|
||||
makeFlags = [ "CONFIG_MORSE_TRANS_NL80211=1" ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D -m755 morse_cli "$out/bin/morse_cli"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "MorseMicro cli";
|
||||
homepage = "https://github.com/MorseMicro";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ govindsi ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user