nixci: init at 0.1.3

This commit is contained in:
Sridhar Ratnakumar 2023-07-20 08:44:38 -04:00
parent dd3ce32ea7
commit 3d1b68c445
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ lib, stdenv
, rustPlatform
, fetchCrate
, fetchFromGitHub
, libiconv
, openssl
, pkg-config
, Security
}:
let
devour-flake = fetchFromGitHub {
owner = "srid";
repo = "devour-flake";
rev = "v2";
sha256 = "sha256-CZedJtbZlWAbv/b/aYgOEFd9vcTBn/oJNI3p29UitLk=";
};
in rustPlatform.buildRustPackage rec {
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.
DEVOUR_FLAKE = lib.getExe (callPackage devour-flake { });
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";
};
}

View File

@ -40124,6 +40124,10 @@ with pkgs;
alejandra = callPackage ../tools/nix/alejandra { };
nixci = callPackage ../tools/nix/nixci {
inherit (darwin.apple_sdk.frameworks) Security;
};
nixfmt = haskellPackages.nixfmt.bin;
nixpkgs-fmt = callPackage ../tools/nix/nixpkgs-fmt { };