Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 44 lines 843 B view raw
1{ stdenv 2, lib 3, fetchFromGitHub 4}: 5 6stdenv.mkDerivation rec { 7 pname = "nodenv"; 8 version = "1.4.1"; 9 10 src = fetchFromGitHub { 11 owner = "nodenv"; 12 repo = "nodenv"; 13 rev = "v${version}"; 14 sha256 = "sha256-S7Uld7wiVJjwuvfupBodIAIOO2c/ywEmFfhEHVOCcCc="; 15 }; 16 17 buildPhase = '' 18 runHook preBuild 19 20 bash src/configure 21 make -C src 22 23 runHook postBuild 24 ''; 25 26 installPhase = '' 27 runHook preInstall 28 29 mkdir -p $out 30 cp -r libexec $out/ 31 cp -r bin $out/ 32 33 runHook postInstall 34 ''; 35 36 meta = with lib; { 37 description = "Manage multiple NodeJS versions"; 38 homepage = "https://github.com/nodenv/nodenv/"; 39 changelog = "https://github.com/nodenv/nodenv/releases/tag/v${version}"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ alexnortung ]; 42 platforms = platforms.unix; 43 }; 44}