diff options
author | Kiran Ostrolenk <kiran.ostrolenk@codethink.co.uk> | 2023-02-19 22:13:03 +0000 |
---|---|---|
committer | Yt <happysalada@proton.me> | 2023-04-04 16:14:22 -0400 |
commit | 92dd06ae1d8d710250b644bd776bb4f174044a39 (patch) | |
tree | aed4a4b27a3c5790978fc69d6b3edf817de00328 /pkgs/shells | |
parent | fb3a9cec932aa6fe44119f944389c7c5a1b02070 (diff) |
nu_scripts: init at unstable-2023-03-16
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/nushell/nu_scripts/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/shells/nushell/nu_scripts/default.nix b/pkgs/shells/nushell/nu_scripts/default.nix new file mode 100644 index 0000000000000..68c5dccd42266 --- /dev/null +++ b/pkgs/shells/nushell/nu_scripts/default.nix @@ -0,0 +1,34 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +}: + +stdenvNoCC.mkDerivation rec { + pname = "nu_scripts"; + version = "unstable-2023-03-16"; + + src = fetchFromGitHub { + owner = "nushell"; + repo = pname; + rev = "00b0039653be5dd2e6567ce8feea82064d27ae11"; + sha256 = "0m17cj5wzp94f01kwgs1dh76zwsl2irr7b06i9sb5skqxmmdnjnz"; + }; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share/nu_scripts + mv ./* $out/share/nu_scripts + + runHook postInstall + ''; + + 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 ]; + }; +} |