Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 openssl, 7 libgit2, 8 nix-update-script, 9}: 10 11rustPlatform.buildRustPackage (finalAttrs: { 12 pname = "pullomatic"; 13 version = "0.2.2"; 14 15 src = fetchFromGitHub { 16 owner = "fooker"; 17 repo = "pullomatic"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-qPuJ2mqbqQQxncsz5DexOYyNctIInX0Of5mdAGu/t/M="; 20 }; 21 22 cargoHash = "sha256-+B/DzDaF3qQlPzjh97CBMAseyeUClgsgzE0EJ8kTlqg="; 23 24 nativeBuildInputs = [ 25 pkg-config 26 ]; 27 28 buildInputs = [ 29 openssl 30 libgit2 31 ]; 32 33 passthru.updateScript = nix-update-script { }; 34 35 meta = { 36 description = "Automates Git repository syncing through pure configuration"; 37 homepage = "https://github.com/fooker/pullomatic"; 38 license = lib.licenses.mit; 39 mainProgram = "pullomatic"; 40 maintainers = with lib.maintainers; [ fooker ]; 41 }; 42})