4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, flac, fuse, lame, libid3tag, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mp3fs";
|
|
version = "0.91";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/khenriks/mp3fs/releases/download/v${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "14ngiqg24p3a0s6hp33zjl4i46d8qn4v9id36psycq3n3csmwyx4";
|
|
};
|
|
|
|
patches = [ ./fix-statfs-operation.patch ];
|
|
|
|
buildInputs = [ flac fuse lame libid3tag ];
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with 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 = "https://khenriks.github.io/mp3fs/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|