lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 24.05-pre 49 lines 1.3 kB view raw
1{ lib, stdenv, rustPlatform, fetchFromBitbucket, Libsystem, SystemConfiguration, installShellFiles }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "bore"; 5 version = "0.4.1"; 6 7 src = fetchFromBitbucket { 8 owner = "delan"; 9 repo = "nonymous"; 10 rev = "${pname}-${version}"; 11 sha256 = "1fdnnx7d18gj4rkv1dc6q379dqabl66zks9i0rjarjwcci8m30d9"; 12 }; 13 14 cargoSha256 = "1xlbfzmy0wjyz3jpr17r4ma4i79d9b32yqwwi10vrcjzr7vsyhmx"; 15 cargoBuildFlags = [ "-p" pname ]; 16 17 # error[E0793]: reference to packed field is unaligned 18 doCheck = !stdenv.isDarwin; 19 20 # FIXME can’t test --all-targets and --doc in a single invocation 21 cargoTestFlags = [ "--all-targets" "--workspace" ]; 22 checkFeatures = [ "std" ]; 23 24 nativeBuildInputs = [ installShellFiles ] 25 ++ lib.optional stdenv.isDarwin rustPlatform.bindgenHook; 26 27 buildInputs = lib.optionals stdenv.isDarwin [ 28 Libsystem 29 SystemConfiguration 30 ]; 31 32 postInstall = '' 33 installManPage $src/bore/doc/bore.1 34 ''; 35 36 doInstallCheck = true; 37 installCheckPhase = '' 38 printf '\0\0\0\0\0\0\0\0\0\0\0\0' \ 39 | $out/bin/bore --decode \ 40 | grep -q ';; NoError #0 Query 0 0 0 0 flags' 41 ''; 42 43 meta = with lib; { 44 description = "DNS query tool"; 45 homepage = "https://crates.io/crates/bore"; 46 license = licenses.isc; 47 maintainers = [ maintainers.delan ]; 48 }; 49}