summary refs log tree commit diff
diff options
context:
space:
mode:
authorGürkan Gür <gurkan.gur@innogames.com>2022-06-09 14:52:32 +0200
committerYt <happysalada@proton.me>2022-06-27 03:36:39 -0400
commitb9460c15f51d323ddf489af6643f574fe1dbd33f (patch)
tree88d4a334e36b628ba99049ee3b997261389753d6
parent3f4f1357369af397ca7fc4cd94dff2022164b12b (diff)
downloadnixpkgs-b9460c15f51d323ddf489af6643f574fe1dbd33f.tar
nixpkgs-b9460c15f51d323ddf489af6643f574fe1dbd33f.tar.gz
nixpkgs-b9460c15f51d323ddf489af6643f574fe1dbd33f.tar.bz2
nixpkgs-b9460c15f51d323ddf489af6643f574fe1dbd33f.tar.lz
nixpkgs-b9460c15f51d323ddf489af6643f574fe1dbd33f.tar.xz
nixpkgs-b9460c15f51d323ddf489af6643f574fe1dbd33f.tar.zst
nixpkgs-b9460c15f51d323ddf489af6643f574fe1dbd33f.zip
sheldon: init at 0.6.6
-rw-r--r--pkgs/tools/misc/sheldon/default.nix60
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/tools/misc/sheldon/default.nix b/pkgs/tools/misc/sheldon/default.nix
new file mode 100644
index 00000000000..db6aa9d8f17
--- /dev/null
+++ b/pkgs/tools/misc/sheldon/default.nix
@@ -0,0 +1,60 @@
+{ lib
+, stdenv
+, fetchCrate
+, rustPlatform
+, pkg-config
+, openssl
+, installShellFiles
+, Security
+, curl
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "sheldon";
+  version = "0.6.6";
+
+  src = fetchCrate {
+    inherit pname version;
+    sha256 = "sha256-NjNBTjSaFoh+DAJfcM4G3+Meih1czLxs/RMmMwrXqD4=";
+  };
+
+  cargoSha256 = "sha256-uRcaHuDLQm6OYqt01kLbW/mfZnL4HaDabaweaw1EOfs=";
+
+  buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin [ Security curl ];
+  nativeBuildInputs = [ installShellFiles pkg-config ];
+
+  # Needs network connection
+  checkFlags = [
+    "--skip cli::tests::raw_opt_help"
+    "--skip lock::tests::external_plugin_lock_git_with_matches"
+    "--skip lock::tests::external_plugin_lock_git_with_matches_error"
+    "--skip lock::tests::external_plugin_lock_git_with_matches_not_each"
+    "--skip lock::tests::external_plugin_lock_git_with_uses"
+    "--skip lock::tests::external_plugin_lock_remote"
+    "--skip lock::tests::git_checkout_resolve_branch"
+    "--skip lock::tests::git_checkout_resolve_rev"
+    "--skip lock::tests::git_checkout_resolve_tag"
+    "--skip lock::tests::locked_config_clean"
+    "--skip lock::tests::source_lock_git_and_reinstall"
+    "--skip lock::tests::source_lock_git_git_with_checkout"
+    "--skip lock::tests::source_lock_git_https_with_checkout"
+    "--skip lock::tests::source_lock_local"
+    "--skip lock::tests::source_lock_remote_and_reinstall"
+    "--skip lock::tests::source_lock_with_git"
+    "--skip lock::tests::source_lock_with_remote"
+  ];
+
+  postInstall = ''
+    installShellCompletion --cmd sheldon \
+      --bash <($out/bin/sheldon completions --shell bash) \
+      --zsh <($out/bin/sheldon completions --shell zsh)
+  '';
+
+  meta = with lib; {
+    description = "A fast and configurable shell plugin manager";
+    homepage = "https://github.com/rossmacarthur/sheldon";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ seqizz ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 3d393bba993..9c3d9fcc9d3 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4288,6 +4288,8 @@ with pkgs;
 
   shab = callPackage ../tools/text/shab { };
 
+  sheldon = callPackage ../tools/misc/sheldon { };
+
   shell-hist = callPackage ../tools/misc/shell-hist { };
 
   shellhub-agent = callPackage ../applications/networking/shellhub-agent { };