mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
stdenv,
|
|
darwin,
|
|
testers,
|
|
hydra-cli,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "hydra-cli";
|
|
version = "0.3.0-unstable-2023-12-20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nlewo";
|
|
repo = "hydra-cli";
|
|
rev = "dbb6eaa45c362969382bae7142085be769fa14e6";
|
|
hash = "sha256-6L+5rkXzjXH9JtLsrJkuV8ZMsm64Q+kcb+2pr1coBK4=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/hydra-cli";
|
|
|
|
cargoHash = "sha256-WokdTMNA7MrbFcKNeFIRU2Tw6LyM80plDoZPX1v/hrc=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = hydra-cli;
|
|
version = "0.3.0";
|
|
};
|
|
|
|
meta = {
|
|
description = "Client for the Hydra CI";
|
|
mainProgram = "hydra-cli";
|
|
homepage = "https://github.com/nlewo/hydra-cli";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [
|
|
lewo
|
|
aleksana
|
|
];
|
|
};
|
|
}
|