2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
2023-08-04 22:07:22 +00:00
|
|
|
, unstableGitUpdater
|
2023-04-12 12:48:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "nu_scripts";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "unstable-2024-01-05";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nushell";
|
|
|
|
repo = pname;
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "06327787549c41c93f8079cb034305d666479587";
|
|
|
|
hash = "sha256-O7wBMsq1Ds5Re5PakxQoDNnJg0VOdz1yKKanv4Q42SA=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/nu_scripts
|
|
|
|
mv ./* $out/share/nu_scripts
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|