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
27 lines
852 B
Nix
27 lines
852 B
Nix
{ lib, stdenv, fetchurl, qmake, qtbase, qtwebkit, qtx11extras, lzo, libX11 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cb2bib";
|
|
version = "2.0.0";
|
|
src = fetchurl {
|
|
url = "https://www.molspaces.com/dl/progs/${pname}-${version}.tar.gz";
|
|
sha256 = "0gv7cnxi84lr6d5y71pd67h0ilmf5c88j1jxgyn9dvj19smrv99h";
|
|
};
|
|
buildInputs = [ qtbase qtwebkit qtx11extras lzo libX11 ];
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
./configure --prefix $out --qmakepath $QMAKE
|
|
runHook postConfigure
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Rapidly extract unformatted, or unstandardized bibliographic references from email alerts, journal Web pages and PDF files";
|
|
homepage = "http://www.molspaces.com/d_cb2bib-overview.php";
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
license = licenses.gpl3;
|
|
};
|
|
|
|
}
|