nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "bibclean";
9 version = "3.07";
10
11 src = fetchurl {
12 url = "http://ftp.math.utah.edu/pub/bibclean/bibclean-${version}.tar.xz";
13 sha256 = "sha256-kZM2eC6ePCBOYPVkhf0fjdZ562IvyP0fSDNZXuEBkaY=";
14 };
15
16 postPatch = ''
17 substituteInPlace Makefile.in --replace man/man1 share/man/man1
18 '';
19
20 preInstall = ''
21 mkdir -p $out/bin $out/share/man/man1
22 '';
23
24 meta = with lib; {
25 description = "Prettyprint and syntax check BibTeX and Scribe bibliography data base files";
26 homepage = "http://ftp.math.utah.edu/pub/bibclean";
27 license = licenses.gpl2Plus;
28 platforms = platforms.all;
29 maintainers = with maintainers; [ dtzWill ];
30 };
31}