nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "w_scan";
9 version = "20170107";
10
11 src = fetchurl {
12 url = "http://wirbel.htpc-forum.de/w_scan/${pname}-${version}.tar.bz2";
13 sha256 = "1zkgnj2sfvckix360wwk1v5s43g69snm45m0drnzyv7hgf5g7q1q";
14 };
15
16 # Workaround build failure on -fno-common toolchains:
17 # ld: char-coding.o:/build/w_scan-20170107/si_types.h:117: multiple definition of
18 # `service_t'; countries.o:/build/w_scan-20170107/si_types.h:117: first defined here
19 env.NIX_CFLAGS_COMPILE = "-fcommon";
20
21 meta = {
22 description = "Small CLI utility to scan DVB and ATSC transmissions";
23 homepage = "http://wirbel.htpc-forum.de/w_scan/index_en.html";
24 platforms = lib.platforms.linux;
25 maintainers = [ lib.maintainers.nico202 ];
26 license = lib.licenses.gpl2;
27 mainProgram = "w_scan";
28 };
29}