4a7f99d55d
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
30 lines
1.0 KiB
Nix
30 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl, autoconf, automake, dbus, glib, libtool, pkgconfig, udisks2 }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "hal-flash-0.3.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/cshorler/hal-flash/archive/v0.3.3.tar.gz";
|
|
sha256 = "0dw9bx190mrh0dycw4rfvfmwwvh2sgypffr99nfnr36b38jrd6y6";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ autoconf automake dbus glib libtool udisks2 ];
|
|
|
|
preConfigure = "libtoolize && aclocal && autoconf && automake --add-missing";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/cshorler/hal-flash";
|
|
description = "libhal stub library to satisfy the Flash Player DRM requirements";
|
|
longDescription =
|
|
''
|
|
Stub library based loosely upon libhal.[ch] from the hal-0.5.14
|
|
package. Provides the minimum necessary functionality to enable
|
|
libflashplayer.so/libadobecp.so to play back DRM content.
|
|
'';
|
|
license = with licenses; [ afl21 gpl2 ];
|
|
maintainers = with maintainers; [ malyn ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|