about summary refs log tree commit diff
path: root/pkgs/applications/file-managers/xplr/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/file-managers/xplr/default.nix')
-rw-r--r--pkgs/applications/file-managers/xplr/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/file-managers/xplr/default.nix b/pkgs/applications/file-managers/xplr/default.nix
new file mode 100644
index 000000000000..6fd3565bfafa
--- /dev/null
+++ b/pkgs/applications/file-managers/xplr/default.nix
@@ -0,0 +1,29 @@
+{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "xplr";
+  version = "0.21.1";
+
+  src = fetchFromGitHub {
+    owner = "sayanarijit";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-WUv0F7etmJFNRnHXkQ5G3p/5BWL30kfSYnxXYpAdo+I=";
+  };
+
+  buildInputs = lib.optional stdenv.isDarwin libiconv;
+
+  cargoSha256 = "sha256-0JJpGSOwayPB3cn7OpBjsOiK4WQNbil3gYrfkqG2cS8=";
+
+  checkFlags = [
+    # failure: path::tests::test_relative_to_parent
+    "--skip=path::tests::test_relative_to_parent"
+  ];
+
+  meta = with lib; {
+    description = "A hackable, minimal, fast TUI file explorer";
+    homepage = "https://xplr.dev";
+    license = licenses.mit;
+    maintainers = with maintainers; [ sayanarijit suryasr007 thehedgeh0g mimame ];
+  };
+}