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