mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-17 03:39:27 +00:00
nixci: init at 0.1.3
This commit is contained in:
parent
dd3ce32ea7
commit
3d1b68c445
45
pkgs/tools/nix/nixci/default.nix
Normal file
45
pkgs/tools/nix/nixci/default.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user