hosts/packages/transcode.nix

49 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2023-02-26 16:42:49 +01:00
{ stdenv
, lib
, fetchgit
, resholve
, bash
, file
, vorbis-tools
, flac
, ffmpeg
, unixtools
, exiftool
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "transcode";
version = "0.3.0";
src = fetchgit {
url = "https://git.25120.org/fruchti/transcode.git";
hash = "sha256-BN40KEQUQBRlwxMGWoPf8kya1kk2KveoU4ReASaKzZc=";
};
dontConfigure = true;
dontBuild = true;
buildInputs = [ bash file vorbis-tools flac ffmpeg unixtools.xxd exiftool ];
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
install -D transcode $out/bin/transcode
wrapProgram $out/bin/transcode \
--prefix PATH : ${lib.makeBinPath [ bash file vorbis-tools flac ffmpeg unixtools.xxd exiftool ]}
'';
# solutions = {
# default = {
# scripts = [ "bin/transcode" ];
# interpreter = "${bash}/bin/bash";
# inputs = [ vorbis-tools flac ffmpeg unixtools.xxd exiftool ];
# };
# };
meta = with lib; {
homepage = "https://git.25120.org/fruchti/transcode";
description = "Transcode music from FLAC to MP3 and OGG";
platforms = platforms.linux;
};
}