On Tue, Nov 16, 2010 at 09:02:54PM +0100, Paul van der Walt wrote:
> This patch adds the cmus console music player to nixpkgs. Tested
> on NixOS i686. If anything is wrong, please advise, it's my
> first package.
Well, viric on #nixos supplied tips, so here is a new patch,
with license and without trailing '.' in the description.
Thanks!
Paul
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Index: pkgs/applications/audio/cmus/default.nix
===================================================================
--- pkgs/applications/audio/cmus/default.nix (revision 0)
+++ pkgs/applications/audio/cmus/default.nix (revision 0)
@@ -0,0 +1,20 @@
+{ stdenv, fetchurl, ncurses, pkgconfig, alsaLib, flac, libmad, ffmpeg, libvorbis, mpc, mp4v2 }:
+
+stdenv.mkDerivation rec {
+ name = "cmus-2.3.3";
+
+ configurePhase = "./configure prefix=$out";
+
+ buildInputs = [ ncurses pkgconfig alsaLib flac libmad ffmpeg libvorbis mpc mp4v2 ];
+
+ src = fetchurl {
+ url = mirror://sourceforge/cmus/cmus-v2.3.3.tar.bz2;
+ md5 = "220e875e4210a6b54882114ef7094a79";
+ };
+
+ meta = {
+ description = "cmus is a small, fast and powerful console music player for Linux and *BSD";
+ homepage = http://cmus.sourceforge.net;
+ license = "GPLv2";
+ };
+}
Index: pkgs/top-level/all-packages.nix
===================================================================
--- pkgs/top-level/all-packages.nix (revision 24713)
+++ pkgs/top-level/all-packages.nix (working copy)
@@ -5243,6 +5243,8 @@
amarok = newScope pkgs.kde4 ../applications/audio/amarok { };
+ cmus = callPackage ../applications/audio/cmus { };
+
amsn = callPackage ../applications/networking/instant-messengers/amsn {
libstdcpp = gcc33.gcc;
};
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev