mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
48 lines
886 B
Nix
48 lines
886 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
libosmocore,
|
|
libosmoabis,
|
|
libosmo-netif,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "osmo-bts";
|
|
version = "1.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osmocom";
|
|
repo = "osmo-bts";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-i3MUWTsZQ0kABzLp/bMM/mEAaw3FDWMUYRwvJtCYpsU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
echo "${finalAttrs.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 = [ lib.maintainers.markuskowa ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|