Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchCrate, 5 pkg-config, 6 dbus, 7 nix-update-script, 8}: 9 10rustPlatform.buildRustPackage (finalAttrs: { 11 pname = "secretspec"; 12 version = "0.2.0"; 13 14 src = fetchCrate { 15 inherit (finalAttrs) pname version; 16 hash = "sha256-6a3BerjcLn86XCakyYlMm4FUUQTc7iq/hCvZEbHnp4g="; 17 }; 18 19 cargoHash = "sha256-4sKja7dED1RuiRYA2BNqvvYlJhPFiM8IzAgQVeSa9Oc="; 20 21 nativeBuildInputs = [ pkg-config ]; 22 buildInputs = [ dbus ]; 23 24 passthru.updateScript = nix-update-script { }; 25 26 meta = { 27 description = "Declarative secrets, every environment, any provider"; 28 homepage = "https://secretspec.dev"; 29 license = with lib.licenses; [ asl20 ]; 30 maintainers = with lib.maintainers; [ domenkozar ]; 31 mainProgram = "secretspec"; 32 }; 33})