blob: 762b8d65a84198485d2015b2682fe1ea5ef0f08b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ 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 {
name = "beep-1.3";
src = fetchFromGitHub {
owner = "johnath";
repo = "beep";
rev = "0d790fa45777896749a885c3b93b2c1476d59f20";
sha256 = "0dxz58an0sz5r82al5sc935y2z2k60rz12ikjvx7sz39rfirgfpc";
};
patches = [ ./cve-2018-0492.patch ];
makeFlags = [
"INSTALL_DIR=${placeholder "out"}/bin/"
"MAN_DIR=${placeholder "out"}/man/man1/"
];
preInstall = ''
mkdir -p $out/{bin,man/man1}
'';
meta = with stdenv.lib; {
description = "The advanced PC speaker beeper";
homepage = http://www.johnath.com/beep/;
license = licenses.gpl2;
platforms = platforms.linux;
};
}
|