Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 38 lines 812 B view raw
1{ lib, stdenv, fetchFromGitHub, meson, ninja }: 2 3stdenv.mkDerivation rec { 4 pname = "janet"; 5 version = "1.28.0"; 6 7 src = fetchFromGitHub { 8 owner = "janet-lang"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-QfW17BDP+xa+Qy9FuIioe8UY6BBGsvbSyyz6GFODg5g="; 12 }; 13 14 postPatch = '' 15 substituteInPlace janet.1 \ 16 --replace /usr/local/ $out/ 17 ''; 18 19 nativeBuildInputs = [ meson ninja ]; 20 21 mesonFlags = [ "-Dgit_hash=release" ]; 22 23 doCheck = true; 24 25 doInstallCheck = true; 26 27 installCheckPhase = '' 28 $out/bin/janet -e '(+ 1 2 3)' 29 ''; 30 31 meta = with lib; { 32 description = "Janet programming language"; 33 homepage = "https://janet-lang.org/"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ andrewchambers peterhoeg ]; 36 platforms = platforms.all; 37 }; 38}