nixpkgs/pkgs/by-name/do/docuum/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
915 B
Nix
Raw Normal View History

2024-03-17 19:10:23 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "docuum";
2024-04-05 12:31:58 +00:00
version = "0.24.0";
2024-03-17 19:10:23 +00:00
src = fetchFromGitHub {
owner = "stepchowfun";
repo = "docuum";
rev = "v${version}";
2024-04-05 12:31:58 +00:00
hash = "sha256-/30wuLnCcomgJ14c5rNbitD1dEpvyRal3L60gQdZPBU=";
2024-03-17 19:10:23 +00:00
};
2024-04-05 12:31:58 +00:00
cargoHash = "sha256-BvZM0tAgwoOO0VFQEoifgmENnW3cfKV3Zj872/Lki6A=";
2024-03-17 19:10:23 +00:00
checkFlags = [
# fails, no idea why
"--skip=format::tests::code_str_display"
];
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.IOKit
];
meta = with lib; {
description = "Least recently used (LRU) eviction of Docker images";
homepage = "https://github.com/stepchowfun/docuum";
changelog = "https://github.com/stepchowfun/docuum/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ mkg20001 ];
mainProgram = "docuum";
};
}