2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2024-02-29 20:09:43 +00:00
|
|
|
, libgit2
|
2023-07-15 17:15:38 +00:00
|
|
|
, openssl
|
|
|
|
, zlib
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "projectable";
|
|
|
|
version = "1.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dzfrias";
|
|
|
|
repo = "projectable";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-yN4OA3glRCzjk87tTadwlhytMoh6FM/ke37BsX4rStQ=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoHash = "sha256-GGoL681Lv3sXnao2WfhLy4VMgtJFFttzn68lArQO1Uc=";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-02-29 20:09:43 +00:00
|
|
|
libgit2
|
2023-07-15 17:15:38 +00:00
|
|
|
openssl
|
|
|
|
zlib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
|
|
];
|
|
|
|
|
|
|
|
env = {
|
2024-02-29 20:09:43 +00:00
|
|
|
LIBGIT2_NO_VENDOR = 1;
|
2023-07-15 17:15:38 +00:00
|
|
|
OPENSSL_NO_VENDOR = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "TUI file manager built for projects";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/dzfrias/projectable";
|
|
|
|
changelog = "https://github.com/dzfrias/projectable/releases/tag/${src.rev}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
mainProgram = "prj";
|
|
|
|
};
|
|
|
|
}
|