nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 31 lines 801 B view raw
1{ stdenv, lib, pkgconfig, openssl, fetchFromGitHub, rustPlatform, darwin }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "hydra-cli"; 5 version = "0.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "nlewo"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "1jdlmc45hwblcxs6hvy3gi2dr7qyzs1sg5zr26jrpxrbvqqzrdhc"; 12 }; 13 14 cargoSha256 = "11y82np52f7lgfzhzs24kkawcfzzc6070x4rj5d6iv5csf6c03ny"; 15 16 buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; 17 18 nativeBuildInputs = [ 19 pkgconfig 20 openssl 21 ]; 22 23 meta = with stdenv.lib; { 24 description = "A client for the Hydra CI"; 25 homepage = "https://github.com/nlewo/hydra-cli"; 26 license = with licenses; [ mit ]; 27 maintainers = with maintainers; [ gilligan lewo ]; 28 platforms = platforms.all; 29 }; 30 31}