41 lines
733 B
Nix
41 lines
733 B
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
let
|
|
libosmo-cc = pkgs.callPackage ../libosmo-cc { };
|
|
in
|
|
|
|
pkgs.stdenv.mkDerivation rec {
|
|
pname = "osmocom-analog";
|
|
version = "unstable-2025-02-08";
|
|
|
|
src = pkgs.fetchgit {
|
|
url = "https://gitea.osmocom.org/cellular-infrastructure/osmocom-analog.git";
|
|
rev = "4ebf64f7c857c4fe7c56f7bdb3c1a4f705919e66";
|
|
hash = "sha256-XqsK4e/WIkm8c4Iwhn4JT7B4pcOrMtEOglOeuOaKWVQ=";
|
|
};
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
autoconf271
|
|
automake
|
|
gnumake
|
|
libtool
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
alsa-lib
|
|
soapysdr
|
|
fuse3
|
|
libosmocore
|
|
fftwFloat
|
|
SDL2
|
|
libosmo-cc
|
|
];
|
|
|
|
configurePhase = ''
|
|
autoreconf -fi
|
|
./configure --prefix=$out
|
|
'';
|
|
|
|
|
|
} |