depot/pkgs/by-name/ru/rusty-bash/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

33 lines
699 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "rusty-bash";
version = "0.8.5";
src = fetchFromGitHub {
owner = "shellgei";
repo = "rusty_bash";
rev = "refs/tags/v${version}";
hash = "sha256-hUMkgsWlGSqOnYdFhDGBWbc13oAssklbuJAg8NkY398=";
};
postPatch = ''
cp ${./Cargo.lock} ./Cargo.lock
'';
cargoLock.lockFile = ./Cargo.lock;
passthru.shellPath = "/bin/sush";
meta = {
description = "Bash written with Rust, a.k.a. sushi shell";
homepage = "https://github.com/shellgei/rusty_bash";
license = lib.licenses.bsd3;
mainProgram = "sush";
maintainers = with lib.maintainers; [ aleksana ];
};
}