2021-01-17 03:51:22 +00:00
|
|
|
{ stdenv, lib, rustPlatform, fetchFromGitLab, pkg-config, file, perl, curl, cmake, openssl, libssh2, libgit2, libzip, Security }:
|
2019-10-25 09:24:21 +00:00
|
|
|
|
2018-05-05 09:37:37 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2018-05-06 11:17:32 +00:00
|
|
|
pname = "powerline-rs";
|
2019-10-25 09:24:21 +00:00
|
|
|
version = "0.2.0";
|
2018-05-05 09:37:37 +00:00
|
|
|
|
2018-10-28 13:21:12 +00:00
|
|
|
src = fetchFromGitLab {
|
2018-05-05 09:37:37 +00:00
|
|
|
owner = "jD91mZM2";
|
|
|
|
repo = "powerline-rs";
|
2019-10-25 09:24:21 +00:00
|
|
|
rev = version;
|
2018-10-28 13:21:12 +00:00
|
|
|
|
2019-10-25 09:24:21 +00:00
|
|
|
sha256 = "0rqlxxl58dpfvm2idhi0vzinraf4bgiapmawiih9wxs599fnhm3y";
|
2018-05-05 09:37:37 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "1i29wps7wz6b0qarqqg8rplq7ak1zz83k6m182sjk17cni74n21l";
|
2018-05-05 09:37:37 +00:00
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config file perl cmake curl ];
|
2018-09-12 23:56:08 +00:00
|
|
|
buildInputs = [ openssl libssh2 libgit2 libzip ] ++ lib.optional stdenv.isDarwin Security;
|
2018-05-06 11:17:32 +00:00
|
|
|
|
2018-10-28 13:21:12 +00:00
|
|
|
COMPLETION_OUT = "out";
|
2018-05-06 11:17:32 +00:00
|
|
|
postInstall = ''
|
2020-11-12 21:22:18 +00:00
|
|
|
install -Dm 755 "${COMPLETION_OUT}/${pname}.bash" "$out/share/bash-completion/completions/${pname}"
|
2018-10-28 13:21:12 +00:00
|
|
|
install -Dm 755 "${COMPLETION_OUT}/${pname}.fish" "$out/share/fish/vendor_completions.d/${pname}"
|
2018-05-06 11:17:32 +00:00
|
|
|
'';
|
2018-05-05 09:37:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "powerline-shell rewritten in Rust, inspired by powerline-go";
|
2018-05-06 05:28:42 +00:00
|
|
|
license = licenses.mit;
|
2021-06-12 21:13:40 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-05-05 09:37:37 +00:00
|
|
|
platforms = platforms.unix;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "powerline-rs";
|
2018-05-05 09:37:37 +00:00
|
|
|
};
|
|
|
|
}
|