depot/third_party/nixpkgs/pkgs/shells/nushell/nu_scripts/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

37 lines
809 B
Nix

{ lib
, stdenvNoCC
, fetchFromGitHub
, unstableGitUpdater
}:
stdenvNoCC.mkDerivation rec {
pname = "nu_scripts";
version = "0-unstable-2024-06-29";
src = fetchFromGitHub {
owner = "nushell";
repo = pname;
rev = "61a805eb06f27dfb4651877ae4e0fd85e2b9f1b7";
hash = "sha256-ZcpcxRKtx2lS39c09txLGysRkLq6dNyy+9aZNrfGcT0=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/nu_scripts
mv ./* $out/share/nu_scripts
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "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 ];
};
}