2021-04-24 01:19:01 +02:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, shared-mime-info }:
|
2021-03-18 22:03:55 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "handlr";
|
2021-04-26 03:12:13 +02:00
|
|
|
version = "0.6.3";
|
2021-03-18 22:03:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chmln";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-26 03:12:13 +02:00
|
|
|
sha256 = "sha256-OtU6sL2Bbbec0gHxk3bl5Inn+ZmNYiHgpSF0gjDuRSg=";
|
2021-03-18 22:03:55 +01:00
|
|
|
};
|
|
|
|
|
2021-04-26 03:12:13 +02:00
|
|
|
cargoSha256 = "sha256-bX7QWV1R+pLxvghpaV10LeROv4wBVfZhHyrPCIgqETA=";
|
2021-03-18 22:03:55 +01:00
|
|
|
|
2021-04-24 01:19:01 +02:00
|
|
|
nativeBuildInputs = [ shared-mime-info ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TEMPDIR
|
|
|
|
'';
|
2021-03-18 22:03:55 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|