nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeWrapper, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 version = "0.11"; 10 pname = "chibi-scheme"; 11 12 src = fetchFromGitHub { 13 owner = "ashinn"; 14 repo = "chibi-scheme"; 15 rev = finalAttrs.version; 16 sha256 = "sha256-i+xiaYwM7a+0T824VSuh7UUNI6HV9KpqzQPE1WAZ+As="; 17 }; 18 19 nativeBuildInputs = [ makeWrapper ]; 20 21 makeFlags = [ 22 "PREFIX=${placeholder "out"}" 23 ]; 24 25 fixupPhase = '' 26 wrapProgram "$out/bin/chibi-scheme" \ 27 --prefix CHIBI_MODULE_PATH : "$out/share/chibi:$out/lib/chibi" \ 28 ${lib.optionalString stdenv.hostPlatform.isDarwin "--prefix DYLD_LIBRARY_PATH : $out/lib"} 29 30 for f in chibi-doc chibi-ffi snow-chibi; do 31 substituteInPlace "$out/bin/$f" \ 32 --replace "/usr/bin/env chibi-scheme" "$out/bin/chibi-scheme" 33 done 34 ''; 35 36 meta = { 37 homepage = "https://github.com/ashinn/chibi-scheme"; 38 description = "Small Footprint Scheme for use as a C Extension Language"; 39 platforms = lib.platforms.all; 40 license = lib.licenses.bsd3; 41 maintainers = with lib.maintainers; [ 42 applePrincess 43 DerGuteMoritz 44 ]; 45 }; 46})