3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/pure-modules/readline/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
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.
2021-01-19 01:16:25 -08:00

26 lines
906 B
Nix

{ stdenv, fetchurl, pkg-config, pure, readline }:
stdenv.mkDerivation rec {
baseName = "readline";
version = "0.3";
name = "pure-${baseName}-${version}";
src = fetchurl {
url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
sha256 = "db8e6663b1c085466c09662fe86d952b6f4ffdafeecffe805c681ab91c910886";
};
nativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = [ pure readline ];
makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
setupHook = ../generic-setup-hook.sh;
meta = {
description = "A trivial wrapper around GNU readline, which gives Pure scripts access to the most important facilities of the readline interface";
homepage = "http://puredocs.bitbucket.org/pure-readline.html";
license = stdenv.lib.licenses.free;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ asppsa ];
};
}