git.iko.soy/typeable/nixpkgs
on master help sign in
beep: 1.3 -> 1.4.9
b414387freezeboy
pkgs/misc/beep/default.nix+15−15
@@ -1,25 +1,25 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchFromGitHub }:
2
2
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
5
5
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 {
11+ owner = "spkr-beep";
12+ repo = "beep";
13+ rev = "v${version}";
14+ sha256 = "JLaoiINHpIFWSqsRl8wJ/NeBu7SCcPuT/BzY8szEu0o=";
11 };
15 };
12
16
13− makeFlags = [ "INSTALL_DIR=\${out}/bin/" "MAN_DIR=\${out}/man/man1/" ];
17+ makeFlags = [ "DESTDIR=\${out}" "prefix="];
14
18
15− preInstall = ''
19+ meta = with stdenv.lib; {
16− mkdir -p $out/bin
17− mkdir -p $out/man/man1
18− '';
19− meta = {
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;
24 };
24 };
25}
25}