nixpkgs/pkgs/applications/video/avxsynth/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

44 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
, cairo, ffmpeg_3, ffms, libjpeg, log4cpp, pango
, avxeditSupport ? false, qt4 ? null
}:
let
inherit (stdenv.lib) enableFeature optional;
in
stdenv.mkDerivation {
pname = "avxsynth";
version = "2015-04-07";
src = fetchFromGitHub {
owner = "avxsynth";
repo = "avxsynth";
rev = "80dcb7ec8d314bc158130c92803308aa8e5e9242";
sha256 = "0kckggvgv68b0qjdi7ms8vi97b46dl63n60qr96d2w67lf2nk87z";
};
configureFlags = [
"--enable-autocrop"
"--enable-framecapture"
"--enable-subtitle"
"--enable-ffms2"
(enableFeature avxeditSupport "avxedit")
"--with-jpeg=${libjpeg.out}/lib"
];
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ cairo ffmpeg_3 ffms libjpeg log4cpp pango ]
++ optional avxeditSupport qt4;
meta = with lib; {
description = "A script system that allows advanced non-linear editing";
homepage = "https://github.com/avxsynth/avxsynth";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ codyopel ];
platforms = platforms.linux;
broken = true; # 2018-04-10
};
}