about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/cd-dvd/ecm-tools/default.nix
blob: 18ef6f02d80c45316b844e1f757744962e5011b4 (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
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "ecm-tools";
  version = "1.0.3";

  src = fetchFromGitHub {
    owner = "alucryd";
    repo = "ecm-tools";
    rev = "v${version}";
    sha256 = "1rvyx5gcy8lfklgj80szlz3312x45wzx0d9jsgwyvy8f6m4nnb0c";
  };

  dontConfigure = true;

  installPhase = ''
    install --directory --mode=755 $out/bin
    install --mode=755 bin2ecm $out/bin
    (cd $out/bin; ln -s bin2ecm ecm2bin)
  '';

  meta = with lib; {
    description = "A utility to uncompress ECM files to BIN CD format";
    homepage = "https://github.com/alucryd/ecm-tools";
    license = licenses.gpl3;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = platforms.all;
  };
}