nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 45 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "sacd"; 10 version = "19.7.16.37"; 11 12 src = fetchFromGitHub { 13 owner = "Sound-Linux-More"; 14 repo = "sacd"; 15 rev = finalAttrs.version; 16 sha256 = "03s7jr75pzqj1xd41rkgbszlgf9zx6vzhd0nizc05wyf0fxq5xif"; 17 }; 18 19 patches = [ 20 # Makefile prefix, otherwise `/usr` prefix is enforced 21 # https://github.com/Sound-Linux-More/sacd/pull/1 22 (fetchpatch { 23 url = "https://github.com/Sound-Linux-More/sacd/commit/a72def4fab234bcd68b444cf7447a8876b4e2ce8.patch"; 24 name = "makefile-prefix.patch"; 25 sha256 = "0a7r4x0yqpg6l4vr84dq4wbrypabqm4vvcjv91am068gqjiw6w64"; 26 }) 27 ]; 28 29 makeFlags = [ 30 "PREFIX=$(out)" 31 ]; 32 33 meta = with lib; { 34 description = "Converts SACD image files, Philips DSDIFF and Sony DSF files to 24-bit high resolution wave files. Handles both DST and DSD streams"; 35 longDescription = '' 36 Super Audio CD decoder. Converts SACD image files, Philips DSDIFF and Sony DSF files to 24-bit high resolution wave files. 37 Handles both DST and DSD streams. 38 ''; 39 homepage = "https://github.com/Sound-Linux-More/sacd"; 40 license = licenses.gpl3; 41 maintainers = [ maintainers.doronbehar ]; 42 platforms = [ "x86_64-linux" ]; 43 mainProgram = "sacd"; 44 }; 45})