about summary refs log tree commit diff
path: root/pkgs/by-name/fl/flac123/package.nix
blob: 2a042366cc250f9a93d48475e8c353add17441a8 (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
34
35
36
37
38
39
{
  lib,
  stdenv,
  fetchFromGitHub,
  autoreconfHook,
  flac,
  libao,
  libogg,
  popt,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "flac123";
  version = "2.1.1";

  src = fetchFromGitHub {
    owner = "flac123";
    repo = "flac123";
    rev = "v${finalAttrs.version}";
    hash = "sha256-LtL69t2r9TlIkpQWZLge8ib7NZ5rvLW6JllG2UM16Kw=";
  };

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [
    flac
    libao
    libogg
    popt
  ];

  meta = {
    homepage = "https://github.com/flac123/flac123";
    description = "A command-line program for playing FLAC audio files";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ kiike ];
    mainProgram = "flac123";
    platforms = lib.platforms.unix;
  };
})