ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, rustPlatform
|
|
, openssl
|
|
, pkg-config
|
|
, Security
|
|
, testers
|
|
, tmux-sessionizer
|
|
}:
|
|
let
|
|
|
|
name = "tmux-sessionizer";
|
|
version = "0.4.3";
|
|
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = name;
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jrmoulton";
|
|
repo = name;
|
|
rev = "v${version}";
|
|
hash = "sha256-wwu3h2eQrim/RbxTYqt+EnFmn0uD6PQzo1Xs1qCVQ3o=";
|
|
};
|
|
|
|
cargoHash = "sha256-5OIiDz66GD3DrNKzxH+bpyweS7Ycn2IOf4f9mdHAaCo=";
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = tmux-sessionizer;
|
|
version = version;
|
|
};
|
|
|
|
# Needed to get openssl-sys to use pkg-config.
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
|
|
|
meta = with lib; {
|
|
description = "Fastest way to manage projects as tmux sessions";
|
|
homepage = "https://github.com/jrmoulton/tmux-sessionizer";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ vinnymeller mrcjkb ];
|
|
mainProgram = "tms";
|
|
};
|
|
}
|