about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/audio/accuraterip-checksum/default.nix
blob: 8658dfb5a7aa489c8a168af6a21ed4cfc1e06506 (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
31
32
{ lib, stdenv, fetchFromGitHub, libsndfile }:

stdenv.mkDerivation rec {
  pname = "accuraterip-checksum";
  version = "1.5";

  src = fetchFromGitHub {
    owner = "leo-bogert";
    repo = "accuraterip-checksum";
    rev = "version${version}";
    sha256 = "1a6biy78jb094rifazn4a2g1dlhryg5q8p8gwj0a60ipl0vfb9bj";
  };

  buildInputs = [ libsndfile ];

  installPhase = ''
    runHook preInstall

    install -D -m755 accuraterip-checksum "$out/bin/accuraterip-checksum"

    runHook postInstall
  '';

  meta = with lib; {
    description = "Program for computing the AccurateRip checksum of singletrack WAV files";
    homepage = "https://github.com/leo-bogert/accuraterip-checksum";
    license = licenses.gpl3;
    maintainers = with maintainers; [ ];
    platforms = with platforms; linux;
    mainProgram = "accuraterip-checksum";
  };
}