nixpkgs/pkgs/tools/misc/handlr/default.nix
2021-05-01 04:39:10 +00:00

28 lines
709 B
Nix

{ lib, rustPlatform, fetchFromGitHub, shared-mime-info }:
rustPlatform.buildRustPackage rec {
pname = "handlr";
version = "0.6.4";
src = fetchFromGitHub {
owner = "chmln";
repo = pname;
rev = "v${version}";
sha256 = "sha256-UYcJtBwbUDqDiRoj5PmO+urURfd7S7fSx2XhQRBrKTE=";
};
cargoSha256 = "sha256-xDQV8wVlzItz0lzR1nVRPVsg7nSf/khUhevDlGgSO3g=";
nativeBuildInputs = [ shared-mime-info ];
preCheck = ''
export HOME=$TEMPDIR
'';
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 ];
};
}