mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
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
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl, unzip, fpc, lazarus }:
|
|
|
|
let
|
|
date = "07.apr.2016";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
pname = "mht2mht";
|
|
version = "1.8.1.35";
|
|
|
|
src = fetchurl {
|
|
# there is a disconnect between the directory name date and file name date
|
|
# you should verify if that is still then case when the next version is released
|
|
url = "mirror://sourceforge/mht2htm/mht2htm/1.8.1%20%2805.apr.2016%29/mht2htmcl-${version}_${date}.source.zip";
|
|
sha256 = "16r6zkihp84yqllp2hyaf0nvymdn9ji3g30mc5scfwycdfanja6f";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
buildInputs = [ fpc lazarus ];
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
lazbuild --lazarusdir=${lazarus}/share/lazarus mht2htmcl.lpi
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm755 -t $out/bin mht2htmcl
|
|
install -Dm644 -t $out/share/doc/mht2htm CHANGELOG COPYING README
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Convert .mht files to .html";
|
|
homepage = "http://pgm.bpalanka.com/mht2htm.html";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = platforms.all;
|
|
broken = true; # 2018-04-11
|
|
};
|
|
}
|