nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 perl, 7 libptytty, 8 readline, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "rlwrap"; 13 version = "0.48"; 14 15 src = fetchFromGitHub { 16 owner = "hanslub42"; 17 repo = "rlwrap"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-Szgyjt/KRFEZMu6JX4Ulm2guTMwh9ejzjlfpkITWOI4="; 20 }; 21 22 nativeBuildInputs = [ 23 autoreconfHook 24 perl 25 ]; 26 27 buildInputs = [ 28 libptytty 29 readline 30 ]; 31 32 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-Wno-error=implicit-function-declaration"; 33 34 # no environment to compile completion.c, update its time to avoid recompiling 35 preBuild = '' 36 touch src/completion.rb 37 touch src/completion.c 38 ''; 39 40 meta = { 41 description = "Readline wrapper for console programs"; 42 homepage = "https://github.com/hanslub42/rlwrap"; 43 changelog = "https://github.com/hanslub42/rlwrap/raw/${finalAttrs.src.rev}/NEWS"; 44 license = lib.licenses.gpl2Plus; 45 platforms = lib.platforms.unix; 46 maintainers = with lib.maintainers; [ jlesquembre ]; 47 mainProgram = "rlwrap"; 48 }; 49})