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";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "unstable-2023-10-07";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nushell";
|
|
|
|
repo = pname;
|
2023-10-19 13:55:26 +00:00
|
|
|
rev = "85da8c2fb5967a7f575d8f63ebeb8d49d36fc139";
|
|
|
|
hash = "sha256-tT/BTnIXEgcMoyfujzWMFlOM7EclWT9LL/dt5jj7Y2M=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|