at 17.09-beta 40 lines 1.1 kB view raw
1{ stdenv, fetchgit, libX11 }: 2 3stdenv.mkDerivation { 4 name = "disk-indicator-2014-05-19"; 5 6 src = fetchgit { 7 url = git://github.com/MeanEYE/Disk-Indicator.git; 8 rev = "51ef4afd8141b8d0659cbc7dc62189c56ae9c2da"; 9 sha256 = "10jx6mx9qarn21p2l2jayxkn1gmqhvck1wymgsr4jmbwxl8ra5kd"; 10 }; 11 12 buildInputs = [ libX11 ]; 13 14 patchPhase = '' 15 substituteInPlace ./makefile --replace "COMPILER=c99" "COMPILER=gcc -std=c99" 16 substituteInPlace ./makefile --replace "COMPILE_FLAGS=" "COMPILE_FLAGS=-O2 " 17 ''; 18 19 buildPhase = "make -f makefile"; 20 21 NIX_CFLAGS_COMPILE = "-Wno-error=cpp"; 22 23 hardeningDisable = [ "fortify" ]; 24 25 installPhase = '' 26 mkdir -p "$out/bin" 27 cp ./disk_indicator "$out/bin/" 28 ''; 29 30 meta = { 31 homepage = https://github.com/MeanEYE/Disk-Indicator; 32 description = "A program that will turn a LED into a hard disk indicator"; 33 longDescription = '' 34 Small program for Linux that will turn your Scroll, Caps or Num Lock LED 35 or LED on your ThinkPad laptop into a hard disk activity indicator. 36 ''; 37 license = stdenv.lib.licenses.gpl3; 38 platforms = stdenv.lib.platforms.linux; 39 }; 40}