depot/third_party/nixpkgs/pkgs/shells/nushell/nu_scripts/default.nix

38 lines
809 B
Nix
Raw Normal View History

{ lib
, stdenvNoCC
, fetchFromGitHub
, unstableGitUpdater
}:
stdenvNoCC.mkDerivation rec {
pname = "nu_scripts";
version = "unstable-2023-08-24";
src = fetchFromGitHub {
owner = "nushell";
repo = pname;
rev = "36a45f28a39ee1526a748b53f438a41ae939fc7c";
hash = "sha256-QhERyWomyOOk9aYRjm69ykzOR3G/uGM/A4Pr9PlB71w=";
};
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 ];
};
}