diff --git a/pkgs/applications/file-managers/projectable/default.nix b/pkgs/applications/file-managers/projectable/default.nix new file mode 100644 index 000000000000..7ef32c5c48af --- /dev/null +++ b/pkgs/applications/file-managers/projectable/default.nix @@ -0,0 +1,49 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, libgit2_1_5 +, openssl +, zlib +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "projectable"; + version = "1.2.0"; + + src = fetchFromGitHub { + owner = "dzfrias"; + repo = "projectable"; + rev = version; + hash = "sha256-mN8kqh17qGJWOwrdH9fCPApFQBbgCs6FaVg38SNJGP0="; + }; + + cargoHash = "sha256-SQ117gFkqex3GFl7RnorSfPo7e0Eefg1l3L0Vyi/tpU="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + libgit2_1_5 + openssl + zlib + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.CoreServices + ]; + + env = { + OPENSSL_NO_VENDOR = true; + }; + + meta = with lib; { + description = "A TUI file manager built for projects"; + 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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index abe68985285b..0c9bf2ad3eda 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11656,6 +11656,8 @@ with pkgs; profile-sync-daemon = callPackage ../tools/misc/profile-sync-daemon { }; + projectable = callPackage ../applications/file-managers/projectable { }; + projectlibre = callPackage ../applications/misc/projectlibre { jre = jre8; jdk = jdk8;