nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 1.0 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 nix-update-script, 6 versionCheckHook, 7}: 8 9rustPlatform.buildRustPackage (finalAttrs: { 10 pname = "docuum"; 11 version = "0.26.0"; 12 13 src = fetchFromGitHub { 14 owner = "stepchowfun"; 15 repo = "docuum"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-ZfC0z/oaf+HQR33DDtixp9LwLD3v+eZ1tP3WvXqNnFY="; 18 }; 19 20 cargoHash = "sha256-0vNhZTIRpZ72hiU6GvlbWlo2U//AdJmowXVuaI/5wB8="; 21 22 checkFlags = [ 23 # fails, no idea why 24 "--skip=format::tests::code_str_display" 25 ]; 26 27 doInstallCheck = true; 28 nativeInstallCheckInputs = [ versionCheckHook ]; 29 versionCheckProgramArg = "--version"; 30 31 passthru.updateScript = nix-update-script { }; 32 33 meta = { 34 description = "Least recently used (LRU) eviction of Docker images"; 35 homepage = "https://github.com/stepchowfun/docuum"; 36 changelog = "https://github.com/stepchowfun/docuum/blob/v${finalAttrs.version}/CHANGELOG.md"; 37 license = lib.licenses.mit; 38 maintainers = with lib.maintainers; [ mkg20001 ]; 39 mainProgram = "docuum"; 40 }; 41})