nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libX11, 6}: 7 8stdenv.mkDerivation { 9 pname = "disk-indicator"; 10 version = "unstable-2018-12-18"; 11 12 src = fetchFromGitHub { 13 owner = "MeanEYE"; 14 repo = "Disk-Indicator"; 15 rev = "ec2d2f6833f038f07a72d15e2d52625c23e10b12"; 16 sha256 = "sha256-cRqgIxF6H1WyJs5hhaAXVdWAlv6t22BZLp3p/qRlCSM="; 17 }; 18 19 buildInputs = [ libX11 ]; 20 21 postPatch = '' 22 # avoid -Werror 23 substituteInPlace Makefile --replace "-Werror" "" 24 # avoid host-specific options 25 substituteInPlace Makefile --replace "-march=native" "" 26 ''; 27 28 postConfigure = '' 29 patchShebangs ./configure.sh 30 ./configure.sh --all 31 ''; 32 33 makeFlags = [ 34 "COMPILER=${stdenv.cc.targetPrefix}cc" 35 ]; 36 37 installPhase = '' 38 runHook preInstall 39 40 mkdir -p "$out/bin" 41 cp ./disk_indicator "$out/bin/" 42 43 runHook postInstall 44 ''; 45 46 meta = { 47 homepage = "https://github.com/MeanEYE/Disk-Indicator"; 48 description = "Program that will turn a LED into a hard disk indicator"; 49 mainProgram = "disk_indicator"; 50 longDescription = '' 51 Small program for Linux that will turn your Scroll, Caps or Num Lock LED 52 or LED on your ThinkPad laptop into a hard disk activity indicator. 53 ''; 54 license = lib.licenses.gpl3; 55 platforms = lib.platforms.linux; 56 }; 57}