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-2024-01-17";
src = fetchFromGitHub {
owner = "nushell";
repo = pname;
rev = "e5176370f68fb028ba0b5c83c83dac8d796b9d8e";
hash = "sha256-aQpyZkVm5/ono7xxtYBTSr4xSdnq/9NJeYTfUyskS8U=";
};
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 ];
};
}