2021-04-25 03:57:28 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, shared-mime-info }:
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "handlr";
|
2021-04-25 03:57:28 +00:00
|
|
|
version = "0.6.1";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chmln";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-25 03:57:28 +00:00
|
|
|
sha256 = "0mxkirsicagvfyihcb06g2bsz5h0zp7xc87vldp4amgddzaxhpbg";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
cargoSha256 = "11glh6f0cjrq76212h80na2rgwpzjmk0j78y3i98nv203rkrczid";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
nativeBuildInputs = [ shared-mime-info ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TEMPDIR
|
|
|
|
'';
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Alternative to xdg-open to manage default applications with ease";
|
|
|
|
homepage = "https://github.com/chmln/handlr";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mredaelli ];
|
|
|
|
};
|
|
|
|
}
|