forked from mirrors/nixpkgs
f7e390e6d4
Related: -9fc5e7e473
-593e11fd94
-508ae42a0f
Since the last time I ran this script, the Repology API changed, so I had to adapt the script used in the previous PR. The new API should be more robust, so overall this is a positive (no more grepping the error messages for our relevant data but just a nice json structure). Here's the new script I used: ```sh curl https://repology.org/api/v1/repository/nix_unstable/problems \ | jq -r '.[] | select(.type == "homepage_permanent_https_redirect") | .data | "s@\(.url)@\(.target)@"' \ | sort | uniq | tee script.sed find -name '*.nix' | xargs -P4 -- sed -f script.sed -i ``` I will also add this script to `maintainers/scripts`.
35 lines
986 B
Nix
35 lines
986 B
Nix
{ stdenv, fetchFromGitHub
|
|
, autoreconfHook, pkgconfig
|
|
, libsndfile }:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "twolame";
|
|
version = "2017-09-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "njh";
|
|
repo = "twolame";
|
|
rev = "977c8ac55d8ca6d5f35d1d413a119dac2b3b0333";
|
|
sha256 = "1rq3yc8ygzdqid9zk6pixmm4w9sk2vrlx217lhn5bjaglv7iyf7x";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
buildInputs = [ libsndfile ];
|
|
|
|
doCheck = false; # fails with "../build-scripts/test-driver: line 107: -Mstrict: command not found"
|
|
|
|
meta = with stdenv.lib;{
|
|
description = "A MP2 encoder";
|
|
longDescription = ''
|
|
TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based on
|
|
tooLAME by Mike Cheng, which in turn is based upon the ISO dist10
|
|
code and portions of LAME.
|
|
'';
|
|
homepage = "https://www.twolame.org/";
|
|
license = with licenses; [ lgpl2Plus ];
|
|
platforms = with platforms; unix;
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
};
|
|
}
|