From 228774aaf57c1b437ec92ff3b8df0dd28c95e9e4 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Mon, 11 Jan 2016 00:03:31 +0100 Subject: [PATCH] wis_go7007: remove dead package & module Broken since 2014, but basically a package from 2008 with no upstream. --- .../hardware/video/encoder/wis-go7007.nix | 15 ---- pkgs/os-specific/linux/wis-go7007/alsa.patch | 20 ----- pkgs/os-specific/linux/wis-go7007/default.nix | 74 ------------------- pkgs/top-level/all-packages.nix | 2 - 4 files changed, 111 deletions(-) delete mode 100644 nixos/modules/hardware/video/encoder/wis-go7007.nix delete mode 100644 pkgs/os-specific/linux/wis-go7007/alsa.patch delete mode 100644 pkgs/os-specific/linux/wis-go7007/default.nix diff --git a/nixos/modules/hardware/video/encoder/wis-go7007.nix b/nixos/modules/hardware/video/encoder/wis-go7007.nix deleted file mode 100644 index e9b3cf72a8dd..000000000000 --- a/nixos/modules/hardware/video/encoder/wis-go7007.nix +++ /dev/null @@ -1,15 +0,0 @@ -{pkgs, config, ...}: - -let - wis_go7007 = config.boot.kernelPackages.wis_go7007; -in - -{ - boot.extraModulePackages = [ wis_go7007 ]; - - environment.systemPackages = [ wis_go7007 ]; - - hardware.firmware = [ wis_go7007 ]; - - services.udev.packages = [ wis_go7007 ]; -} diff --git a/pkgs/os-specific/linux/wis-go7007/alsa.patch b/pkgs/os-specific/linux/wis-go7007/alsa.patch deleted file mode 100644 index 64fd9310e775..000000000000 --- a/pkgs/os-specific/linux/wis-go7007/alsa.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff -rc wis-go7007-linux-0.9.8-orig/apps/gorecord.c wis-go7007-linux-0.9.8/apps/gorecord.c -*** wis-go7007-linux-0.9.8-orig/apps/gorecord.c 2006-04-02 00:35:17.000000000 +0200 ---- wis-go7007-linux-0.9.8/apps/gorecord.c 2008-06-20 19:47:48.000000000 +0200 -*************** -*** 196,202 **** - sprintf(sympath, "/sys/class/sound/pcmC%dD0c/device", i); - if (realpath(sympath, canonpath) == NULL) - continue; -! if (!strcmp(gopath, canonpath)) - break; - } - if (i == 20) { ---- 196,202 ---- - sprintf(sympath, "/sys/class/sound/pcmC%dD0c/device", i); - if (realpath(sympath, canonpath) == NULL) - continue; -! if (!strncmp(gopath, canonpath, strlen(gopath))) - break; - } - if (i == 20) { diff --git a/pkgs/os-specific/linux/wis-go7007/default.nix b/pkgs/os-specific/linux/wis-go7007/default.nix deleted file mode 100644 index 4dae68d4871e..000000000000 --- a/pkgs/os-specific/linux/wis-go7007/default.nix +++ /dev/null @@ -1,74 +0,0 @@ -{stdenv, fetchurl, kernel, ncurses, fxload}: - -let - - # A patch to fix A/V sync, and to allow video to be played - # (e.g. using MPlayer) while the AVI is being recorded. - gorecordAV = fetchurl { - url = http://colabti.org/convertx/patch-av-aviheader.diff; - sha256 = "04qk58qigzwfdnn3mr3pg28qx4r89nlzdhgkvfipz36bsny23r50"; - }; - -in - -stdenv.mkDerivation { - name = "wis-go7007-0.9.8-${kernel.version}"; - - src = fetchurl { - url = http://gentoo.osuosl.org/distfiles/wis-go7007-linux-0.9.8.tar.bz2; - sha256 = "06lvlz42c5msvwc081p8vjcbv8qq1j1g1myxhh27xi8zi06n1mzg"; - }; - - patches = map fetchurl [ - { url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-tv/wis-go7007/files/wis-go7007-0.9.8-kernel-2.6.17.diff?rev=1.1"; - sha256 = "0cizbg82fdl5byhvpkdx64qa02xcahdyddi2l2jn95sxab28a5yg"; - } - { url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-tv/wis-go7007/files/wis-go7007-0.9.8-fix-udev.diff?rev=1.2"; - sha256 = "1985lcb7gh5zsf3lm0b43zd6q0cb9q4z376n9q060bh99yw6m0w1"; - } - { url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-tv/wis-go7007/files/snd.patch?rev=1.1"; - sha256 = "0a6dz1l16pz1fk77s3awxh635cacbivfcfnd1carbx5jp2gq3jna"; - } - { url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/media-tv/wis-go7007/files/wis-go7007-2.6.26-nopage.diff?rev=1.1"; - sha256 = "18ks6dm9nnliab9ncgxx5nhw528vhwg83byps8wjsbadd3wzwym3"; - } - { url = http://home.comcast.net/~bender647/go7007/wis-go7007-2.6.24-no_algo_control.diff; - sha256 = "1a7jkcsnzagir3wpsj60pjrr9wgfaqq21jlmq6s0qg9hqg4nzbvf"; - } - ] ++ [ - # http://nikosapi.org/wiki/index.php/WIS_Go7007_Linux_driver#wis-streamer_fails_to_find_the_ALSA_audio_node_and_emulated_OSS_device_node - ./alsa.patch - ]; - - buildInputs = [ncurses]; - - postPatch = '' - (cd apps && patch < ${gorecordAV}) || false - ''; - - preBuild = '' - includeDir=$TMPDIR/scratch - substituteInPlace Makefile \ - --replace '$(DESTDIR)$(KSRC)/include/linux' $includeDir \ - --replace '$(DESTDIR)$(FIRMWARE_DIR)' '$(FIRMWARE_DIR)' - mkdir -p $includeDir - mkdir -p $out/etc/hotplug/usb - mkdir -p $out/etc/udev/rules.d - - makeFlagsArray=(KERNELSRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/source \ - FIRMWARE_DIR=$out/lib/firmware FXLOAD=${fxload}/sbin/fxload \ - DESTDIR=$out SKIP_DEPMOD=1 \ - USE_UDEV=y) - ''; # */ - - postInstall = '' - mkdir -p $out/bin - cp apps/gorecord apps/modet $out/bin/ - ''; - - meta = { - description = "Kernel module for the Micronas GO7007, used in a number of USB TV devices"; - homepage = http://oss.wischip.com/; - broken = true; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2b34e8e184b7..73e2a134fe57 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10143,8 +10143,6 @@ let openafsClient = callPackage ../servers/openafs-client { }; - wis_go7007 = callPackage ../os-specific/linux/wis-go7007 { }; - kernelHeaders = callPackage ../os-specific/linux/kernel-headers { }; klibc = callPackage ../os-specific/linux/klibc { };