Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
62 lines
1.4 KiB
Nix
62 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
openssl,
|
|
pkg-config,
|
|
installShellFiles,
|
|
nix,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "nixci";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "srid";
|
|
repo = "nixci";
|
|
tag = version;
|
|
hash = "sha256-0VvZFclqwAcKN95eusQ3lgV0pp1NRUDcVXpVUC0P4QI=";
|
|
};
|
|
|
|
cargoHash = "sha256-iRsmB+ak6pWFtAdXEmGSc9dGdIuSbgLp3UT3SdOUOGQ=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
installShellFiles
|
|
nix
|
|
];
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
|
openssl
|
|
];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd nixci \
|
|
--bash <($out/bin/nixci completion bash) \
|
|
--fish <($out/bin/nixci completion fish) \
|
|
--zsh <($out/bin/nixci completion zsh)
|
|
'';
|
|
|
|
# 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";
|
|
tag = "v4";
|
|
hash = "sha256-Vey9n9hIlWiSAZ6CCTpkrL6jt4r2JvT2ik9wa2bjeC0=";
|
|
};
|
|
|
|
meta = {
|
|
description = "Define and build CI for Nix projects anywhere";
|
|
homepage = "https://github.com/srid/nixci";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [
|
|
shivaraj-bh
|
|
rsrohitsingh682
|
|
];
|
|
mainProgram = "nixci";
|
|
};
|
|
}
|