mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake
|
|
, sqlite, wxGTK30-gtk3, libusb1, soapysdr
|
|
, mesa_glu, libX11, gnuplot, fltk
|
|
} :
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "limesuite";
|
|
version = "20.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "myriadrf";
|
|
repo = "LimeSuite";
|
|
rev = "v${version}";
|
|
sha256 = "04wzfhzqmxjsa6bgcr4zd518fln9rbwnbabf48kha84d70vzkdlx";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [
|
|
"-DOpenGL_GL_PREFERENCE=GLVND"
|
|
];
|
|
|
|
buildInputs = [
|
|
libusb1
|
|
sqlite
|
|
wxGTK30-gtk3
|
|
fltk
|
|
gnuplot
|
|
libusb1
|
|
soapysdr
|
|
mesa_glu
|
|
libX11
|
|
];
|
|
|
|
postInstall = ''
|
|
install -Dm444 -t $out/lib/udev/rules.d ../udev-rules/64-limesuite.rules
|
|
install -Dm444 -t $out/share/limesuite bin/Release/lms7suite_mcu/*
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Driver and GUI for LMS7002M-based SDR platforms";
|
|
homepage = "https://github.com/myriadrf/LimeSuite";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|
|
|