nixpkgs-suyu/pkgs/development/tools/dcadec/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

26 lines
721 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "dcadec";
version = "0.2.0";
src = fetchFromGitHub {
owner = "foo86";
repo = pname;
rev = "v" + version;
sha256 = "07nd0ajizrp1w02bsyfcv18431r8m8rq8gjfmz9wmckpg7cxj2hs";
};
installPhase = "make PREFIX=/ DESTDIR=$out install";
doCheck = false; # fails with "ERROR: Run 'git submodule update --init test/samples' first."
meta = with lib; {
description = "DTS Coherent Acoustics decoder with support for HD extensions";
mainProgram = "dcadec";
maintainers = with maintainers; [ edwtjo ];
homepage = "https://github.com/foo86/dcadec";
license = licenses.lgpl21;
platforms = platforms.linux;
};
}