diff --git a/pkgs/by-name/co/conceal/package.nix b/pkgs/by-name/co/conceal/package.nix index 37c276d22096..866eb72c001c 100644 --- a/pkgs/by-name/co/conceal/package.nix +++ b/pkgs/by-name/co/conceal/package.nix @@ -8,19 +8,21 @@ conceal, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "conceal"; - version = "0.5.5"; + version = "0.6.1"; src = fetchFromGitHub { owner = "TD-Sky"; repo = "conceal"; - rev = "v${version}"; - sha256 = "sha256-BYLDSRgBba6SoGsL/NTV/OTG1/V9RSr8lisj42JqBRM="; + tag = "v${finalAttrs.version}"; + hash = "sha256-kgJcxckXfwnKZ3MyJ+GE1LiQmu9YdfqFrtL9gBJ330E="; }; useFetchCargoVendor = true; - cargoHash = "sha256-yCHN7N+hRrWfuCEBA6gh2S/rRP+ZkHCjFBGGY9/LTb4="; + cargoHash = "sha256-Ym/HnUOLIKfCFWgusx92QeQYaNp9tfrhg5V1h02q3e0="; + + env.CONCEAL_GEN_COMPLETIONS = "true"; nativeBuildInputs = [ installShellFiles ]; @@ -36,17 +38,17 @@ rustPlatform.buildRustPackage rec { passthru.tests = testers.testVersion { package = conceal; command = "conceal --version"; - version = "conceal ${version}"; + version = "conceal ${finalAttrs.version}"; }; - meta = with lib; { + meta = { description = "Trash collector written in Rust"; homepage = "https://github.com/TD-Sky/conceal"; - license = licenses.mit; - maintainers = with maintainers; [ + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jedsek kashw2 ]; broken = stdenv.hostPlatform.isDarwin; }; -} +})