Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 26 lines 783 B view raw
1{ lib, stdenv, fetchurl, pciutils }: 2 3stdenv.mkDerivation { 4 pname = "i810switch"; 5 version = "0.6.5"; 6 7 installPhase = " 8 sed -i -e 's+/usr++' Makefile 9 sed -i -e 's+^\\(.*putenv(\"PATH=\\).*$+\\1${pciutils}/sbin\");+' i810switch.c 10 make clean 11 make install DESTDIR=\${out} 12 "; 13 14 src = fetchurl { 15 url = "http://www16.plala.or.jp/mano-a-mano/i810switch/i810switch-0.6.5.tar.gz"; 16 sha256 = "d714840e3b14e1fa9c432c4be0044b7c008d904dece0d611554655b979cad4c3"; 17 }; 18 19 meta = with lib; { 20 description = "Utility for switching between the LCD and external VGA display on Intel graphics cards"; 21 homepage = "http://www16.plala.or.jp/mano-a-mano/i810switch.html"; 22 maintainers = [ ]; 23 license = licenses.gpl2Only; 24 platforms = platforms.linux; 25 }; 26}