Merge pull request #310150 from kiike/zhf/flac123

flac123: 0.0.12 -> 2.1.1, reformat, move to pkgs/by-name
This commit is contained in:
Weijia Wang 2024-05-09 20:19:11 +02:00 committed by GitHub
commit e5efb76526
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 39 additions and 24 deletions

View File

@ -1,22 +0,0 @@
{ lib, stdenv, fetchurl, autoreconfHook, flac, libao, libogg, popt }:
stdenv.mkDerivation rec {
pname = "flac123";
version = "0.0.12";
src = fetchurl {
url = "mirror://sourceforge/flac-tools/${pname}-${version}-release.tar.gz";
sha256 = "0zg4ahkg7v81za518x32wldf42g0rrvlrcqhrg9sv3li9bayyxhr";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ flac libao libogg popt ];
meta = with lib; {
homepage = "https://flac-tools.sourceforge.net/";
description = "A command-line program for playing FLAC audio files";
license = licenses.gpl2Plus;
platforms = platforms.all;
mainProgram = "flac123";
};
}

View File

@ -0,0 +1,39 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
flac,
libao,
libogg,
popt,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "flac123";
version = "2.1.1";
src = fetchFromGitHub {
owner = "flac123";
repo = "flac123";
rev = "v${finalAttrs.version}";
hash = "sha256-LtL69t2r9TlIkpQWZLge8ib7NZ5rvLW6JllG2UM16Kw=";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [
flac
libao
libogg
popt
];
meta = {
homepage = "https://github.com/flac123/flac123";
description = "A command-line program for playing FLAC audio files";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ kiike ];
mainProgram = "flac123";
platforms = lib.platforms.unix;
};
})

View File

@ -8105,8 +8105,6 @@ with pkgs;
fim = callPackage ../tools/graphics/fim { };
flac123 = callPackage ../applications/audio/flac123 { };
flamegraph = callPackage ../development/tools/flamegraph { };
flawfinder = callPackage ../development/tools/flawfinder { };