Add first script
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
commit
caade47b4c
4 changed files with 543 additions and 0 deletions
32
flake.nix
Normal file
32
flake.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
|
||||
outputs =
|
||||
inputs:
|
||||
let
|
||||
forAllSystems =
|
||||
f:
|
||||
inputs.nixpkgs.lib.genAttrs [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
] (system: f (import inputs.nixpkgs { inherit system; }));
|
||||
in
|
||||
{
|
||||
packages = forAllSystems (pkgs: {
|
||||
gitlab-job-status = pkgs.writeShellApplication {
|
||||
name = "gitlab-job-status";
|
||||
runtimeInputs = [
|
||||
pkgs.curl
|
||||
pkgs.jq
|
||||
pkgs.git
|
||||
pkgs.ncurses
|
||||
pkgs.coreutils
|
||||
];
|
||||
|
||||
text = builtins.readFile ./gitlab-job-status;
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue