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

stdenv.mkDerivation rec {
  pname = "dolbybcsoftwaredecode";
  version = "april-2018";

  src = fetchurl {
    url = "mirror://sourceforge/dolbybcsoftwaredecode/April-2018/SourceCode.zip";
    sha256 = "sha256-uLcsRIpwmJlstlGV8I4+/30+D9GDpUt7DOIP/GkXWp4=";
  };

  nativeBuildInputs = [ unzip fpc ];
  buildPhase = ''
    fpc DolbyBi64.PP
  '';
  installPhase = ''
    mkdir -p $out/bin
    cp DolbyBi64 $out/bin/
  '';

  meta = with lib; {
    description = "A Dolby B & C software decoder";
    homepage = "https://sourceforge.net/projects/dolbybcsoftwaredecode/";
    maintainers = with maintainers; [ lorenz ];

    # Project is has source code available, but has no explicit license.
    # I asked upstream to assign a license, so maybe this can be free
    # in the future, but for now let's play it safe and make it unfree.
    license = lib.licenses.unfree;
  };
}