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-09 19:29:22 +00:00
|
|
|
version = "unstable-2023-08-24";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nushell";
|
|
|
|
repo = pname;
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "36a45f28a39ee1526a748b53f438a41ae939fc7c";
|
|
|
|
hash = "sha256-QhERyWomyOOk9aYRjm69ykzOR3G/uGM/A4Pr9PlB71w=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|