summary refs log tree commit diff
path: root/pkgs/tools/filesystems/mp3fs/default.nix
blob: 77207cb8b3a177890100ed3be5139fc93590e1a6 (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
{ stdenv, fetchurl, flac, fuse, lame, libid3tag, pkgconfig }:

stdenv.mkDerivation rec {
  name = "mp3fs-${version}";
  version = "0.91";

  src = fetchurl {
    url = "https://github.com/khenriks/mp3fs/releases/download/v${version}/${name}.tar.gz";
    sha256 = "14ngiqg24p3a0s6hp33zjl4i46d8qn4v9id36psycq3n3csmwyx4";
  };

  patches = [ ./fix-statfs-operation.patch ];

  buildInputs = [ flac fuse lame libid3tag ];
  nativeBuildInputs = [ pkgconfig ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "FUSE file system that transparently transcodes to MP3";
    longDescription = ''
      A read-only FUSE filesystem which transcodes between audio formats
      (currently only FLAC to MP3) on the fly when files are opened and read.
      It can let you use a FLAC collection with software and/or hardware
      which only understands the MP3 format, or transcode files through
      simple drag-and-drop in a file browser.
    '';
    homepage = http://khenriks.github.io/mp3fs/;
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ nckx ];
  };
}