@@ -1,25 +1,25 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchFromGitHub }:
3# this package is working only as root
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
4# in order to work as a non privileged user you would need to suid the bin
6−stdenv.mkDerivation {
6+stdenv.mkDerivation rec {
7− name = "beep-1.3";
7+ pname = "beep";
8− src = fetchurl {
8+ version = "1.4.9";
9− url = "http://www.johnath.com/beep/beep-1.3.tar.gz";
9+
10− sha256 = "0bgch6jq5cahakk3kbr9549iysf2dik09afixxy5brbxk1xfzb2r";
10+ src = fetchFromGitHub {
14+ sha256 = "JLaoiINHpIFWSqsRl8wJ/NeBu7SCcPuT/BzY8szEu0o=";
13− makeFlags = [ "INSTALL_DIR=\${out}/bin/" "MAN_DIR=\${out}/man/man1/" ];
17+ makeFlags = [ "DESTDIR=\${out}" "prefix="];
15− preInstall = ''
19+ meta = with stdenv.lib; {
17− mkdir -p $out/man/man1
20 description = "The advanced PC speaker beeper";
20 description = "The advanced PC speaker beeper";
21− homepage = "http://www.johnath.com/beep/";
21+ homepage = "https://github.com/spkr-beep/beep";
22− license = stdenv.lib.licenses.gpl2;
22+ license = licenses.gpl2Only;
23− platforms = stdenv.lib.platforms.linux;
23+ platforms = platforms.linux;