Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: 2 3buildGoModule rec { 4 pname = "hd-idle"; 5 version = "1.20"; 6 7 src = fetchFromGitHub { 8 owner = "adelolmo"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-7EXfI3E83ltpjq2M/qZX2P/bNtQQBWZRBCD7i5uit0I="; 12 }; 13 14 vendorHash = null; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 postInstall = '' 19 installManPage debian/hd-idle.8 20 ''; 21 22 meta = with lib; { 23 description = "Spins down external disks after a period of idle time"; 24 homepage = "https://github.com/adelolmo/hd-idle"; 25 license = licenses.gpl3Plus; 26 platforms = platforms.linux; 27 maintainers = [ maintainers.rycee ]; 28 }; 29}