9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
30 lines
952 B
Nix
30 lines
952 B
Nix
{ stdenv, fetchurl, pkg-config, pure, pandoc, gawk, getopt }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
baseName = "pandoc";
|
|
version = "0.1";
|
|
name = "pure-${baseName}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
|
|
sha256 = "0f23a17549048ca3a8f4936ea9e931feb05997390b486850936b746996350cda";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ pure ];
|
|
propagatedBuildInputs = [ pandoc gawk getopt ];
|
|
makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
|
|
preInstall = ''
|
|
mkdir -p $out/bin
|
|
mkdir -p $out/share/man/man1
|
|
'';
|
|
|
|
meta = {
|
|
description = "Converts Sphinx-formatted Pure documentation files to Markdown and other formats using Pandoc";
|
|
homepage = "http://puredocs.bitbucket.org/pure-pandoc.html";
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ asppsa ];
|
|
};
|
|
}
|