diff options
author | matthewcroughan <matt@croughan.sh> | 2024-04-28 18:34:49 +0100 |
---|---|---|
committer | Emery Hemingway <ehmry@posteo.net> | 2024-05-02 12:43:07 +0000 |
commit | 1f84352d10ff89f51f99963f9f3e20f1e4d821cd (patch) | |
tree | d6afcb210d6e701f66e59564a3e962afde7027f9 | |
parent | db15bbc3d5d80ef43ed21f1f0a6ce84a9058780c (diff) |
ax25ms: init at unstable-2024-04-28
Co-authored-by: Alexis Hildebrandt <afh@surryhill.net>
-rw-r--r-- | pkgs/by-name/ax/ax25ms/package.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/by-name/ax/ax25ms/package.nix b/pkgs/by-name/ax/ax25ms/package.nix new file mode 100644 index 0000000000000..94a5ca9ce6f83 --- /dev/null +++ b/pkgs/by-name/ax/ax25ms/package.nix @@ -0,0 +1,64 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoconf +, protobuf +, pkg-config +, grpc +, libtool +, which +, automake +, libax25 +}: + +stdenv.mkDerivation { + pname = "ax25ms"; + version = "0-unstable-2024-04-28"; + + src = fetchFromGitHub { + owner = "ThomasHabets"; + repo = "ax25ms"; + rev = "c7d7213bb182e4b60f655c3f9f1bcb2b2440406b"; + hash = "sha256-GljGJa44topJ6T0g5wuU8GTHLKzNmQqUl8/AR+pw2+I="; + }; + + buildInputs = [ + protobuf + grpc + libax25 + ]; + + nativeBuildInputs = [ + which + pkg-config + autoconf + libtool + automake + ]; + + preConfigure = '' + patchShebangs scripts + ./bootstrap.sh + ''; + + postInstall = '' + set +e + for binary_path in "$out/bin"/*; do + filename=$(basename "$binary_path") + mv "$binary_path" "$out/bin/ax25ms-$filename" + done + set -e + ''; + + meta = with lib; { + description = "Set of AX.25 microservices, designed to be pluggable for any implementation"; + homepage = "https://github.com/ThomasHabets/ax25ms"; + license = licenses.asl20; + maintainers = with maintainers; [ + matthewcroughan + sarcasticadmin + pkharvey + ]; + platforms = platforms.all; + }; +} |