diff options
author | Ricardo M. Correia <rcorreia@wizy.org> | 2014-05-30 17:56:05 +0200 |
---|---|---|
committer | Ricardo M. Correia <rcorreia@wizy.org> | 2014-05-30 21:24:46 +0200 |
commit | 2030328fea2d477d32db569e544ad1cde733c949 (patch) | |
tree | 43746b4984dfb0696b433d39e97ba44472c77d07 /pkgs/os-specific/linux/disk-indicator | |
parent | ce7be7584fc3a757ba74b87bd1acdabcec357d3e (diff) | |
download | nixpkgs-2030328fea2d477d32db569e544ad1cde733c949.tar nixpkgs-2030328fea2d477d32db569e544ad1cde733c949.tar.gz nixpkgs-2030328fea2d477d32db569e544ad1cde733c949.tar.bz2 nixpkgs-2030328fea2d477d32db569e544ad1cde733c949.tar.lz nixpkgs-2030328fea2d477d32db569e544ad1cde733c949.tar.xz nixpkgs-2030328fea2d477d32db569e544ad1cde733c949.tar.zst nixpkgs-2030328fea2d477d32db569e544ad1cde733c949.zip |
disk-indicator: Add package
A program that will turn a LED into a hard disk indicator.
Diffstat (limited to 'pkgs/os-specific/linux/disk-indicator')
-rw-r--r-- | pkgs/os-specific/linux/disk-indicator/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/disk-indicator/default.nix b/pkgs/os-specific/linux/disk-indicator/default.nix new file mode 100644 index 00000000000..57fc9390f61 --- /dev/null +++ b/pkgs/os-specific/linux/disk-indicator/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchgit, libX11 }: + +stdenv.mkDerivation { + name = "disk-indicator"; + + 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"; + + 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 = "GPLv3"; + platforms = stdenv.lib.platforms.linux; + }; +} |