Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 33 lines 744 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7# this package is working only as root 8# in order to work as a non privileged user you would need to suid the bin 9 10stdenv.mkDerivation rec { 11 pname = "beep"; 12 version = "1.4.12"; 13 14 src = fetchFromGitHub { 15 owner = "spkr-beep"; 16 repo = "beep"; 17 rev = "v${version}"; 18 sha256 = "sha256-gDgGI9F+wW2cN89IwP93PkMv6vixJA2JckF78nxZ+TU="; 19 }; 20 21 makeFlags = [ "prefix=${placeholder "out"}" ]; 22 23 # causes redefinition of _FORTIFY_SOURCE 24 hardeningDisable = [ "fortify3" ]; 25 26 meta = with lib; { 27 description = "Advanced PC speaker beeper"; 28 homepage = "https://github.com/spkr-beep/beep"; 29 license = licenses.gpl2Only; 30 platforms = platforms.linux; 31 mainProgram = "beep"; 32 }; 33}