Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / shells / nushell / nu_scripts / default.nix
blob4b8181e293ca32a2c38b7ca3d29f77389010c435
1 { lib
2 , stdenvNoCC
3 , fetchFromGitHub
4 , unstableGitUpdater
5 }:
7 stdenvNoCC.mkDerivation rec {
8   pname = "nu_scripts";
9   version = "unstable-2023-10-31";
11   src = fetchFromGitHub {
12     owner = "nushell";
13     repo = pname;
14     rev = "c2bb125a6790bef1e448680e077345c4d10dcb12";
15     hash = "sha256-Sug07QTL7fxxQAf9YOprMNEQSDqeXEk7qt1g2dP0Eqk=";
16   };
18   installPhase = ''
19     runHook preInstall
21     mkdir -p $out/share/nu_scripts
22     mv ./* $out/share/nu_scripts
24     runHook postInstall
25   '';
27   passthru.updateScript = unstableGitUpdater { };
29   meta = {
30     description = "A place to share Nushell scripts with each other";
31     homepage = "https://github.com/nushell/nu_scripts";
32     license = lib.licenses.free;
34     platforms = lib.platforms.unix;
35     maintainers = [ lib.maintainers.CardboardTurkey ];
36   };