mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
38 lines
809 B
Nix
38 lines
809 B
Nix
{ lib
|
|
, stdenvNoCC
|
|
, fetchFromGitHub
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "nu_scripts";
|
|
version = "0-unstable-2024-09-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nushell";
|
|
repo = pname;
|
|
rev = "d04eea634a3ac35d481fa26c35271dfe175bf3e2";
|
|
hash = "sha256-uHD8j98WubyvtbtOqTdfGmeRJ7zoVDVZ9+CJzmB6vF0=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|