depot/third_party/nixpkgs/pkgs/tools/nix/nixci/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

51 lines
1.1 KiB
Nix

{ lib, stdenv
, rustPlatform
, fetchCrate
, fetchFromGitHub
, libiconv
, openssl
, pkg-config
, Security
, SystemConfiguration
, IOKit
}:
rustPlatform.buildRustPackage rec {
pname = "nixci";
version = "0.5.0";
src = fetchCrate {
inherit version;
pname = "nixci";
hash = "sha256-XbPXS29zqg+pOs/JRRB2bRPdMTDy/oKLM41UomSZTN0=";
};
cargoHash = "sha256-+ed/XsEAwp7bsZOb+bOailpgSFnKvwoHR0QptnGeulk=";
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.isLinux [
openssl
] ++ lib.optionals stdenv.isDarwin [
IOKit
Security
SystemConfiguration
];
# The rust program expects an environment (at build time) that points to the
# devour-flake flake.
env.DEVOUR_FLAKE = fetchFromGitHub {
owner = "srid";
repo = "devour-flake";
rev = "v4";
hash = "sha256-Vey9n9hIlWiSAZ6CCTpkrL6jt4r2JvT2ik9wa2bjeC0=";
};
meta = with lib; {
description = "Define and build CI for Nix projects anywhere";
homepage = "https://github.com/srid/nixci";
license = licenses.agpl3Only;
maintainers = with maintainers; [ srid shivaraj-bh ];
mainProgram = "nixci";
};
}