btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / libax25 / package.nix
blob27f5190990062859021cbe8e4a7a3629a44623c7
1 { lib
2 , stdenv
3 , fetchurl
4 , glibc
5 }:
7 stdenv.mkDerivation rec {
8   pname = "libax25";
9   version = "0.0.12-rc5";
11   buildInputs = [ glibc ] ++ lib.optionals stdenv.hostPlatform.isStatic [ glibc.static ];
13   # Due to recent unsolvable administrative domain problems with linux-ax25.org,
14   # the new domain is linux-ax25.in-berlin.de
15   src = fetchurl {
16     url = "https://linux-ax25.in-berlin.de/pub/ax25-lib/libax25-${version}.tar.gz";
17     hash = "sha256-vxV5GVDOHr38N/512ArZpnZ+a7FTbXBNpoSJkc9DI98=";
18   };
20   configureFlags = [ "--sysconfdir=/etc" ];
22   LDFLAGS = lib.optionals stdenv.hostPlatform.isStatic [ "-static-libgcc" "-static" ];
24   meta = with lib; {
25     description = "AX.25 library for hamradio applications";
26     homepage = "https://linux-ax25.in-berlin.de/wiki/Main_Page";
27     license = licenses.lgpl21Only;
28     maintainers = with maintainers; [ sarcasticadmin ];
29     platforms = platforms.linux;
30   };