mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
Merge pull request #327616 from Aleksanaa/hydra-cli
hydra-cli: 0.3.0 -> 0.3.0-unstable-2023-12-20
This commit is contained in:
commit
fd29c411f7
1995
pkgs/development/tools/misc/hydra-cli/Cargo.lock
generated
1995
pkgs/development/tools/misc/hydra-cli/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,49 +1,49 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, openssl
|
||||
, stdenv
|
||||
, darwin
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
openssl,
|
||||
stdenv,
|
||||
darwin,
|
||||
testers,
|
||||
hydra-cli,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "hydra-cli";
|
||||
version = "0.3.0";
|
||||
version = "0.3.0-unstable-2023-12-20";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nlewo";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1fd3swdjx249971ak1bgndm5kh6rlzbfywmydn122lhfi6ry6a03";
|
||||
repo = "hydra-cli";
|
||||
rev = "dbb6eaa45c362969382bae7142085be769fa14e6";
|
||||
hash = "sha256-6L+5rkXzjXH9JtLsrJkuV8ZMsm64Q+kcb+2pr1coBK4=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
};
|
||||
sourceRoot = "${src.name}/hydra-cli";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
cargoHash = "sha256-WokdTMNA7MrbFcKNeFIRU2Tw6LyM80plDoZPX1v/hrc=";
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.Security
|
||||
];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
# build fails due to outdated socket2 dependency
|
||||
postPatch = ''
|
||||
ln -sf ${./Cargo.lock} Cargo.lock
|
||||
'';
|
||||
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
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 licenses; [ mit ];
|
||||
maintainers = with maintainers; [ lewo ];
|
||||
license = with lib.licenses; [ mit ];
|
||||
maintainers = with lib.maintainers; [
|
||||
lewo
|
||||
aleksana
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user