2014-05-30 16:56:05 +01:00
|
|
|
{ stdenv, fetchgit, libX11 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-06-04 18:22:36 +01:00
|
|
|
name = "disk-indicator-2014-05-19";
|
2014-05-30 16:56:05 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "git://github.com/MeanEYE/Disk-Indicator.git";
|
2014-05-30 16:56:05 +01:00
|
|
|
rev = "51ef4afd8141b8d0659cbc7dc62189c56ae9c2da";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "10jx6mx9qarn21p2l2jayxkn1gmqhvck1wymgsr4jmbwxl8ra5kd";
|
2014-05-30 16:56:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace ./makefile --replace "COMPILER=c99" "COMPILER=gcc -std=c99"
|
|
|
|
substituteInPlace ./makefile --replace "COMPILE_FLAGS=" "COMPILE_FLAGS=-O2 "
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = "make -f makefile";
|
|
|
|
|
2014-11-28 17:40:19 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
|
2016-02-26 17:38:15 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "fortify" ];
|
2014-11-28 17:40:19 +00:00
|
|
|
|
2014-05-30 16:56:05 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp ./disk_indicator "$out/bin/"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/MeanEYE/Disk-Indicator";
|
2014-05-30 16:56:05 +01:00
|
|
|
description = "A program that will turn a LED into a hard disk indicator";
|
|
|
|
longDescription = ''
|
|
|
|
Small program for Linux that will turn your Scroll, Caps or Num Lock LED
|
|
|
|
or LED on your ThinkPad laptop into a hard disk activity indicator.
|
|
|
|
'';
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2014-05-30 16:56:05 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|