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.9";
9
10 src = fetchFromGitHub {
11 owner = "spkr-beep";
12 repo = "beep";
13 rev = "v${version}";
14 sha256 = "JLaoiINHpIFWSqsRl8wJ/NeBu7SCcPuT/BzY8szEu0o=";
15 };
16
17 makeFlags = [ "DESTDIR=\${out}" "prefix="];
18
19 meta = with lib; {
20 description = "The advanced PC speaker beeper";
21 homepage = "https://github.com/spkr-beep/beep";
22 license = licenses.gpl2Only;
23 platforms = platforms.linux;
24 };
25}