summary refs log tree commit diff
path: root/pkgs/tools/audio
diff options
context:
space:
mode:
authorMichael Reilly <OmnipotentEntity@gmail.com>2019-05-07 17:40:42 -0400
committerMichael Reilly <OmnipotentEntity@gmail.com>2019-05-12 07:00:50 -0400
commit9e9996ad1a4f25faf4a5bfd13ff0018dceeaa144 (patch)
tree58b0884d86850d1d632318b8be590a7e0ce957ae /pkgs/tools/audio
parenta2bdd63c4f6e7ddca774f2941251e44d42191fe7 (diff)
downloadnixpkgs-9e9996ad1a4f25faf4a5bfd13ff0018dceeaa144.tar
nixpkgs-9e9996ad1a4f25faf4a5bfd13ff0018dceeaa144.tar.gz
nixpkgs-9e9996ad1a4f25faf4a5bfd13ff0018dceeaa144.tar.bz2
nixpkgs-9e9996ad1a4f25faf4a5bfd13ff0018dceeaa144.tar.lz
nixpkgs-9e9996ad1a4f25faf4a5bfd13ff0018dceeaa144.tar.xz
nixpkgs-9e9996ad1a4f25faf4a5bfd13ff0018dceeaa144.tar.zst
nixpkgs-9e9996ad1a4f25faf4a5bfd13ff0018dceeaa144.zip
mp3cat init at 0.5
Adding package mp3cat, a command line mp3 utility which will concatenate
multiple mp3 files, and keep only the audio frames, discarding headers
and so on.
Diffstat (limited to 'pkgs/tools/audio')
-rw-r--r--pkgs/tools/audio/mp3cat/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/audio/mp3cat/default.nix b/pkgs/tools/audio/mp3cat/default.nix
new file mode 100644
index 00000000000..19f670793ba
--- /dev/null
+++ b/pkgs/tools/audio/mp3cat/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  pname = "mp3cat";
+  version = "0.5";
+
+  src = fetchFromGitHub {
+    owner = "tomclegg";
+    repo = pname;
+    rev = version;
+    sha256 = "0n6hjg2wgd06m561zc3ib5w2m3pwpf74njv2b2w4sqqh5md2ymfr";
+  };
+
+  makeFlags = [
+    "PREFIX=${placeholder ''out''}"
+  ];
+
+  installTargets = [
+    "install_bin"
+  ];
+
+  meta = with stdenv.lib; {
+    description = "A command line program which concatenates MP3 files";
+    longDescription = ''
+      A command line program which concatenates MP3 files, mp3cat
+      only outputs MP3 frames with valid headers, even if there is extra garbage
+      in its input stream
+    '';
+    homepage = https://github.com/tomclegg/mp3cat;
+    license = licenses.gpl2;
+    maintainers = [ maintainers.omnipotententity ];
+    platforms = platforms.all;
+  };
+}