nixpkgs/pkgs/tools/misc/tmux-sessionizer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.0 KiB
Nix
Raw Normal View History

2023-03-18 09:28:10 +00:00
{ lib
, fetchFromGitHub
, stdenv
, rustPlatform
, openssl
, pkg-config
, Security
, testers
, tmux-sessionizer
}:
let
2023-03-18 09:28:10 +00:00
name = "tmux-sessionizer";
version = "0.4.2";
2023-03-18 09:28:10 +00:00
in
rustPlatform.buildRustPackage {
pname = name;
inherit version;
2023-03-18 09:28:10 +00:00
src = fetchFromGitHub {
owner = "jrmoulton";
repo = name;
rev = "v${version}";
hash = "sha256-n6DXqsq3TsNob/fEqeOwNTVLPAvCr7CDN9qtXAiOMWQ=";
2023-03-18 09:28:10 +00:00
};
cargoHash = "sha256-e2U6x7HFoFbZxtJvY/ZpgEWagIrdRxPVZw2rP5aDIqg=";
2023-03-18 09:28:10 +00:00
passthru.tests.version = testers.testVersion {
package = tmux-sessionizer;
version = version;
};
# Needed to get openssl-sys to use pkg-config.
OPENSSL_NO_VENDOR = 1;
2023-03-18 09:28:10 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "tms";
2023-03-18 09:28:10 +00:00
};
}