2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2014-01-25 09:28:27 +00:00
|
|
|
|
|
|
|
# this package is working only as root
|
|
|
|
# in order to work as a non privileged user you would need to suid the bin
|
|
|
|
|
2020-12-27 15:34:29 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "beep";
|
2022-02-12 15:13:58 +00:00
|
|
|
version = "1.4.12";
|
2020-12-27 15:34:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "spkr-beep";
|
|
|
|
repo = "beep";
|
|
|
|
rev = "v${version}";
|
2022-02-12 15:13:58 +00:00
|
|
|
sha256 = "sha256-gDgGI9F+wW2cN89IwP93PkMv6vixJA2JckF78nxZ+TU=";
|
2014-01-25 09:28:27 +00:00
|
|
|
};
|
|
|
|
|
2022-02-12 15:13:58 +00:00
|
|
|
makeFlags = [ "prefix=${placeholder "out"}"];
|
2014-01-25 09:28:27 +00:00
|
|
|
|
2023-07-09 20:14:18 +00:00
|
|
|
# causes redefinition of _FORTIFY_SOURCE
|
|
|
|
hardeningDisable = [ "fortify3" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-01-25 09:28:27 +00:00
|
|
|
description = "Advanced PC speaker beeper";
|
2020-12-27 15:34:29 +00:00
|
|
|
homepage = "https://github.com/spkr-beep/beep";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.linux;
|
2023-08-29 11:54:27 +00:00
|
|
|
mainProgram = "beep";
|
2014-01-25 09:28:27 +00:00
|
|
|
};
|
|
|
|
}
|