biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / powerline-rs / default.nix
blob77506e95ba0aa27d754cfcf316bb631d340cafff
1 { stdenv, lib, rustPlatform, fetchFromGitLab, pkg-config, file, perl, curl, cmake, openssl, libssh2, libgit2, libzip, Security }:
3 rustPlatform.buildRustPackage rec {
4   pname = "powerline-rs";
5   version = "0.2.0";
7   src = fetchFromGitLab {
8     owner = "jD91mZM2";
9     repo = "powerline-rs";
10     rev = version;
12     sha256 = "0rqlxxl58dpfvm2idhi0vzinraf4bgiapmawiih9wxs599fnhm3y";
13   };
15   cargoHash = "sha256-NAhLTrTshCm1QKGaOdD/YaqD6c3oYZwVBst8fvTlScQ=";
17   nativeBuildInputs = [ pkg-config file perl cmake curl ];
18   buildInputs = [ openssl libssh2 libgit2 libzip ] ++ lib.optional stdenv.hostPlatform.isDarwin Security;
20   COMPLETION_OUT = "out";
21   postInstall = ''
22     install -Dm 755 "${COMPLETION_OUT}/powerline-rs.bash" "$out/share/bash-completion/completions/powerline-rs"
23     install -Dm 755 "${COMPLETION_OUT}/powerline-rs.fish" "$out/share/fish/vendor_completions.d/powerline-rs"
24   '';
26   meta = with lib; {
27     description = "powerline-shell rewritten in Rust, inspired by powerline-go";
28     license = licenses.mit;
29     maintainers = [ ];
30     platforms = platforms.unix;
31     mainProgram = "powerline-rs";
32   };