37 lines
809 B
Nix
37 lines
809 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "nu_scripts";
|
|
version = "unstable-2024-03-20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nushell";
|
|
repo = pname;
|
|
rev = "707cda345078553f3e878a100ca103a28f440705";
|
|
hash = "sha256-pgihFkuPIjFTLYtVKaXA+NPUfs/8TpWoojpGyi5TLhY=";
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/nu_scripts
|
|
mv ./* $out/share/nu_scripts
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = {
|
|
description = "A place to share Nushell scripts with each other";
|
|
homepage = "https://github.com/nushell/nu_scripts";
|
|
license = lib.licenses.free;
|
|
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.CardboardTurkey ];
|
|
};
|
|
}
|