tmuxPlugins.catppucin: unstable-2024-05-16 -> 2.1.2 (#379030)
[NixPkgs.git] / pkgs / by-name / i8 / i810switch / package.nix
blob0291c249274b2e9bcf76c4dff46c0a7b41e0d01b
2   lib,
3   stdenv,
4   fetchurl,
5   pciutils,
6 }:
8 stdenv.mkDerivation {
9   pname = "i810switch";
10   version = "0.6.5";
12   installPhase = "
13     sed -i -e 's+/usr++' Makefile
14     sed -i -e 's+^\\(.*putenv(\"PATH=\\).*$+\\1${pciutils}/sbin\");+' i810switch.c
15     make clean
16     make install DESTDIR=\${out}
17   ";
19   src = fetchurl {
20     url = "http://www16.plala.or.jp/mano-a-mano/i810switch/i810switch-0.6.5.tar.gz";
21     sha256 = "d714840e3b14e1fa9c432c4be0044b7c008d904dece0d611554655b979cad4c3";
22   };
24   meta = with lib; {
25     description = "Utility for switching between the LCD and external VGA display on Intel graphics cards";
26     homepage = "http://www16.plala.or.jp/mano-a-mano/i810switch.html";
27     maintainers = [ ];
28     license = licenses.gpl2Only;
29     platforms = platforms.linux;
30   };