nixpkgs/pkgs/misc/beep/default.nix
Alexis Hildebrandt f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00

29 lines
736 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 rec {
pname = "beep";
version = "1.4.12";
src = fetchFromGitHub {
owner = "spkr-beep";
repo = "beep";
rev = "v${version}";
sha256 = "sha256-gDgGI9F+wW2cN89IwP93PkMv6vixJA2JckF78nxZ+TU=";
};
makeFlags = [ "prefix=${placeholder "out"}"];
# causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ];
meta = with lib; {
description = "Advanced PC speaker beeper";
homepage = "https://github.com/spkr-beep/beep";
license = licenses.gpl2Only;
platforms = platforms.linux;
mainProgram = "beep";
};
}