-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hunter (file manager) package #83554
Comments
fails with
|
This derivation could likely be improved, but it works for me: { stdenv
, callPackage
, makeRustPlatform
, fetchFromGitHub
, IOKit ? null
, makeWrapper
, glib
, gst_all_1
, libsixel
}:
assert stdenv.isDarwin -> IOKit != null;
let
date = "2020-05-22";
mozillaOverlay = fetchFromGitHub {
owner = "mozilla";
repo = "nixpkgs-mozilla";
rev = "e912ed483e980dfb4666ae0ed17845c4220e5e7c";
sha256 = "08fvzb8w80bkkabc1iyhzd15f4sm7ra10jn32kfch5klgl0gj3j3";
};
mozilla = callPackage "${mozillaOverlay.out}/package-set.nix" {};
rustNightly = (mozilla.rustChannelOf { inherit date; channel = "nightly"; }).rust;
rustPlatform = makeRustPlatform {
cargo = rustNightly;
rustc = rustNightly;
};
in
rustPlatform.buildRustPackage rec {
pname = "hunter";
version = "1.3.5";
src = fetchFromGitHub {
owner = "rabite0";
repo = "hunter";
rev = "v${version}";
sha256 = "0z28ymz0kr726zjsrksipy7jz7y1kmqlxigyqkh3pyh154b38cis";
};
RUSTC_BOOTSTRAP=1;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [
glib
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-ugly
gst_all_1.gst-plugins-bad
libsixel
] ++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
postInstall = ''
wrapProgram $out/bin/hunter --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
'';
cargoSha256 = "18ycj1f310s74gkjz2hh4dqzjb3bnxm683968l1cbxs7gq20jzx6";
meta = with stdenv.lib; {
description = "The fastest file manager in the galaxy!";
homepage = https://github.com/rabite0/hunter;
license = licenses.wtfpl;
maintainers = [];
platforms = platforms.unix;
};
} |
@callahad Thanks! |
I didn't submit a pull request because I don't use Hunter, so I didn't want to take on the responsibility of maintaining the derivation 🙂 Totally happy for anyone else to claim authorship and submit that as a PR, though. |
I marked this as stale due to inactivity. → More info |
This can be closed now @magnetophon @teto ? |
I think hunter's development has stalled and I found it less practical than ranger but it is now part of nixpkgs so indeed let's close |
Yeah and it looks like joshuto is stepping up as the "rust ranger" alternative What's the policy on removing stalled/stagnant/unmaintained packages in nixpkgs? |
as long as there is a maintainer and no security issue, it can stay in (my opinion). If joshuto gets packaged and hunter's maintainer agrees, maybe joshuto can replace it. |
@figsoda sure, I will remove it. |
Project description
"The fastest file manager in the galaxy!" - aka the ranger file manager rewritten async in rust.
Metadata
Possible Package Definition
Sorry I can't create a PR myself - I do not have permission from my employer to contribute to open source code.
The text was updated successfully, but these errors were encountered: