about summary refs log tree commit diff
path: root/pkgs/applications/audio/squeezelite/default.nix
blob: 20f6271c7adf75229b65c4f85125fc9d43548e41 (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
{ stdenv, fetchFromGitHub, alsaLib, faad2, flac, libmad, libvorbis, mpg123 }:

stdenv.mkDerivation {
  name = "squeezelite-git-2016-05-27";

  src = fetchFromGitHub {
    owner = "ralph-irving";
    repo = "squeezelite";
    rev = "e37ed17fed9e11a7346cbe9f1e1deeccc051f42e";
    sha256 = "15ihx2dbp4kr6k6r50g9q5npqad5zyv8nqf5cr37bhg964syvbdm";
  };

  buildInputs = [ alsaLib faad2 flac libmad libvorbis mpg123 ];

  installPhase = ''
    mkdir -p $out/bin
    cp squeezelite $out/bin
  '';

  meta = with stdenv.lib; {
    description = "Lightweight headless squeezebox client emulator";
    homepage = https://github.com/ralph-irving/squeezelite;
    license = licenses.gpl3;
    platforms = platforms.linux;
  };
}