depot/third_party/nixpkgs/pkgs/shells/nushell/nu_scripts/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

37 lines
809 B
Nix

{ 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 ];
};
}