uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
56
pkgs/applications/radio/splat/default.nix
Normal file
56
pkgs/applications/radio/splat/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{ lib, stdenv, fetchurl, groff, ncurses, bzip2, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "splat";
|
||||
version = "1.4.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.qsl.net/kd2bd/${pname}-${version}.tar.bz2";
|
||||
hash = "sha256-ObCzFOLpJ73wDR7aS5hl79EouoUDBfmHrsBJxP1Yopw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs =
|
||||
# configure script needs `clear`
|
||||
[ groff ncurses ];
|
||||
|
||||
buildInputs = [ bzip2 zlib ];
|
||||
|
||||
postPatch = "patchShebangs build utils/build";
|
||||
|
||||
configurePhase =
|
||||
# configure for maximum resolution
|
||||
''
|
||||
runHook preConfigure
|
||||
cat > std-params.h << EOF
|
||||
#define HD_MODE 1
|
||||
#define MAXPAGES 64
|
||||
EOF
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
./build all
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dt $out/bin splat
|
||||
find utils -type f -executable -exec install -Dt $out/bin {} \;
|
||||
install -Dt $out/share/man/man1 docs/english/man/*.1
|
||||
install -Dt $out/share/man/es/man1 docs/spanish/man/*.1
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description =
|
||||
"SPLAT! is an RF Signal Propagation, Loss, And Terrain analysis tool for the electromagnetic spectrum between 20 MHz and 20 GHz";
|
||||
license = licenses.gpl2Only;
|
||||
homepage = "https://www.qsl.net/kd2bd/splat.html";
|
||||
maintainers = with maintainers; [ ehmry ];
|
||||
platforms = platforms.x86_64;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue