nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 1.1 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 installShellFiles, 6 versionCheckHook, 7 nix-update-script, 8}: 9 10rustPlatform.buildRustPackage (finalAttrs: { 11 pname = "scraper"; 12 version = "0.25.0"; 13 14 src = fetchFromGitHub { 15 owner = "rust-scraper"; 16 repo = "scraper"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-SGYusb+8MKz4vXjZZlM+bpmrshmts+FZLjR44DyHYqg="; 19 }; 20 21 cargoHash = "sha256-vbJMOVur2QE0rFo1OJkSsuNzTOzn22ty5Py3gozDEzs="; 22 23 nativeBuildInputs = [ installShellFiles ]; 24 25 postInstall = '' 26 installManPage scraper/scraper.1 27 ''; 28 29 doInstallCheck = true; 30 nativeInstallCheckInputs = [ 31 versionCheckHook 32 ]; 33 34 passthru = { 35 updateScript = nix-update-script { }; 36 }; 37 38 meta = { 39 description = "Tool to query HTML files with CSS selectors"; 40 mainProgram = "scraper"; 41 homepage = "https://github.com/rust-scraper/scraper"; 42 changelog = "https://github.com/rust-scraper/scraper/releases/tag/v${finalAttrs.version}"; 43 license = lib.licenses.isc; 44 maintainers = with lib.maintainers; [ 45 kachick 46 ]; 47 }; 48})