Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 37 lines 809 B view raw
1{ lib 2, stdenvNoCC 3, fetchFromGitHub 4, unstableGitUpdater 5}: 6 7stdenvNoCC.mkDerivation rec { 8 pname = "nu_scripts"; 9 version = "unstable-2023-10-31"; 10 11 src = fetchFromGitHub { 12 owner = "nushell"; 13 repo = pname; 14 rev = "c2bb125a6790bef1e448680e077345c4d10dcb12"; 15 hash = "sha256-Sug07QTL7fxxQAf9YOprMNEQSDqeXEk7qt1g2dP0Eqk="; 16 }; 17 18 installPhase = '' 19 runHook preInstall 20 21 mkdir -p $out/share/nu_scripts 22 mv ./* $out/share/nu_scripts 23 24 runHook postInstall 25 ''; 26 27 passthru.updateScript = unstableGitUpdater { }; 28 29 meta = { 30 description = "A place to share Nushell scripts with each other"; 31 homepage = "https://github.com/nushell/nu_scripts"; 32 license = lib.licenses.free; 33 34 platforms = lib.platforms.unix; 35 maintainers = [ lib.maintainers.CardboardTurkey ]; 36 }; 37}