nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 68 lines 1.4 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 groff, 6 ncurses, 7 bzip2, 8 zlib, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "splat"; 13 version = "1.4.2"; 14 15 src = fetchurl { 16 url = "https://www.qsl.net/kd2bd/${pname}-${version}.tar.bz2"; 17 hash = "sha256-ObCzFOLpJ73wDR7aS5hl79EouoUDBfmHrsBJxP1Yopw="; 18 }; 19 20 nativeBuildInputs = 21 # configure script needs `clear` 22 [ 23 groff 24 ncurses 25 ]; 26 27 buildInputs = [ 28 bzip2 29 zlib 30 ]; 31 32 postPatch = "patchShebangs build utils/build"; 33 34 configurePhase = 35 # configure for maximum resolution 36 '' 37 runHook preConfigure 38 cat > std-params.h << EOF 39 #define HD_MODE 1 40 #define MAXPAGES 64 41 EOF 42 runHook postConfigure 43 ''; 44 45 buildPhase = '' 46 runHook preBuild 47 ./build all 48 runHook postBuild 49 ''; 50 51 installPhase = '' 52 runHook preInstall 53 install -Dt $out/bin splat 54 find utils -type f -executable -exec install -Dt $out/bin {} \; 55 install -Dt $out/share/man/man1 docs/english/man/*.1 56 install -Dt $out/share/man/es/man1 docs/spanish/man/*.1 57 runHook postInstall 58 ''; 59 60 meta = { 61 broken = stdenv.hostPlatform.isDarwin; 62 description = "RF Signal Propagation, Loss, And Terrain analysis tool for the electromagnetic spectrum between 20 MHz and 20 GHz"; 63 license = lib.licenses.gpl2Only; 64 homepage = "https://www.qsl.net/kd2bd/splat.html"; 65 platforms = lib.platforms.x86_64; 66 }; 67 68}