nixpkgs/pkgs/tools/nix/nixci/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
916 B
Nix
Raw Normal View History

2023-07-20 12:44:38 +00:00
{ lib, stdenv
, rustPlatform
, fetchCrate
, libiconv
, openssl
, pkg-config
, Security
2023-07-23 14:23:46 +00:00
, devour-flake
2023-07-20 12:44:38 +00:00
}:
2023-07-23 14:23:46 +00:00
rustPlatform.buildRustPackage rec {
2023-07-20 12:44:38 +00:00
pname = "nixci";
version = "0.1.3";
src = fetchCrate {
inherit version;
pname = "nixci";
hash = "sha256-sM/1G1mf+msWbG4CX/pZNt4FmSKR2hWXdcq5h7W1AM0=";
};
cargoHash = "sha256-PKBNQKuWV4PE7iSKr+LugayroFjDBT4/vyyjJiw/E+I=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libiconv openssl ]
++ lib.optionals stdenv.isDarwin [ Security ];
# The rust program expects an environment (at build time) that points to the
# devour-flake executable.
2023-07-23 14:23:46 +00:00
DEVOUR_FLAKE = lib.getExe devour-flake;
2023-07-20 12:44:38 +00:00
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 ];
mainProgram = "nixci";
};
}