diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/osmocom/osmo-bts/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/osmocom/osmo-bts/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/osmocom/osmo-bts/default.nix b/nixpkgs/pkgs/servers/osmocom/osmo-bts/default.nix new file mode 100644 index 000000000000..42a214f7ce45 --- /dev/null +++ b/nixpkgs/pkgs/servers/osmocom/osmo-bts/default.nix @@ -0,0 +1,47 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libosmocore +, libosmoabis +, libosmo-netif +}: + +stdenv.mkDerivation rec { + pname = "osmo-bts"; + version = "1.7.2"; + + src = fetchFromGitHub { + owner = "osmocom"; + repo = "osmo-bts"; + rev = version; + hash = "sha256-dje+B1jobsVdQZYyIkLTZzez4HQirCcjyosTQCo/v64="; + }; + + postPatch = '' + echo "${version}" > .tarball-version + ''; + + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ + libosmocore + libosmoabis + libosmo-netif + ]; + + enableParallelBuilding = true; + + meta = { + description = "Osmocom GSM Base Transceiver Station (BTS)"; + homepage = "https://osmocom.org/projects/osmobts"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ janik ]; + platforms = lib.platforms.linux; + }; +} |