flac123: 0.0.12 -> 2.1.1, reformat, move to pkgs/by-name

This commit is contained in:
Enric Morales 2024-05-08 17:59:19 +02:00
parent 9a4fc03ff4
commit 23c0e1d7d6
No known key found for this signature in database
GPG Key ID: 75191DF8C4AB9749
3 changed files with 38 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,38 @@
{
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";
};
})

View File

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