about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/audio/losslessaudiochecker/default.nix
blob: b7150d6b6771313d52d3cf8814c1b193528540ee (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
{ lib, stdenv, fetchurl, autoPatchelfHook }:

stdenv.mkDerivation {
  pname = "losslessaudiochecker";
  version = "2.0.5";

  src = fetchurl {
    url = "https://web.archive.org/web/20211119122205/https://losslessaudiochecker.com/dl/LAC-Linux-64bit.tar.gz";
    sha256 = "1i1zbl7sqwxwmhw89lgz922l5k85in3y76zb06h8j3zd0lb20wkq";
  };

  nativeBuildInputs = [ autoPatchelfHook ];

  setSourceRoot = "sourceRoot=$PWD";

  dontBuild = true;

  installPhase = ''
    install LAC -D -t $out/bin
  '';

  meta = {
    description = "Utility to check whether audio is truly lossless or not";
    homepage = "https://losslessaudiochecker.com";
    sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
    license = lib.licenses.unfree;
    platforms = [ "x86_64-linux" ];
    maintainers = with lib.maintainers; [ p-h ];
  };
}