mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
aff1f4ab94
The following parameters are now available: * hardeningDisable To disable specific hardening flags * hardeningEnable To enable specific hardening flags Only the cc-wrapper supports this right now, but these may be reused by other wrappers, builders or setup hooks. cc-wrapper supports the following flags: * fortify * stackprotector * pie (disabled by default) * pic * strictoverflow * format * relro * bindnow
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, fetchgit, libX11 }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "disk-indicator-2014-05-19";
|
|
|
|
src = fetchgit {
|
|
url = git://github.com/MeanEYE/Disk-Indicator.git;
|
|
rev = "51ef4afd8141b8d0659cbc7dc62189c56ae9c2da";
|
|
sha256 = "0f8mxl3wqlap8zajdk6r9liliayp8w4xs4jy8jbwanmmppwz0nb9";
|
|
};
|
|
|
|
buildInputs = [ libX11 ];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace ./makefile --replace "COMPILER=c99" "COMPILER=gcc -std=c99"
|
|
substituteInPlace ./makefile --replace "COMPILE_FLAGS=" "COMPILE_FLAGS=-O2 "
|
|
'';
|
|
|
|
buildPhase = "make -f makefile";
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/bin"
|
|
cp ./disk_indicator "$out/bin/"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://github.com/MeanEYE/Disk-Indicator;
|
|
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.
|
|
'';
|
|
license = stdenv.lib.licenses.gpl3;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|