mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
34 lines
763 B
Nix
34 lines
763 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
# this package is working only as root
|
|
# in order to work as a non privileged user you would need to suid the bin
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "beep";
|
|
version = "1.4.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "spkr-beep";
|
|
repo = "beep";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-gDgGI9F+wW2cN89IwP93PkMv6vixJA2JckF78nxZ+TU=";
|
|
};
|
|
|
|
makeFlags = [ "prefix=${placeholder "out"}" ];
|
|
|
|
# causes redefinition of _FORTIFY_SOURCE
|
|
hardeningDisable = [ "fortify3" ];
|
|
|
|
meta = {
|
|
description = "Advanced PC speaker beeper";
|
|
homepage = "https://github.com/spkr-beep/beep";
|
|
license = lib.licenses.gpl2Only;
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "beep";
|
|
};
|
|
})
|