utility-scripts/flake.nix
Marcel Müller 527ed85dff Add migrate-workspace-deps script
This script will migrate all crate-level version dependencies to the
top-level.

It won't work for more esoteric configurations, and print a warning.

Signed-off-by: Marcel Müller <neikos@neikos.email>
2026-01-10 11:32:05 +01:00

43 lines
960 B
Nix

{
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;
};
migrate-workspace-deps = pkgs.writeShellApplication {
name = "migrate-workspace-deps";
runtimeInputs = [
pkgs.jq
pkgs.git
pkgs.yq
];
text = builtins.readFile ./migrate-workspace-deps;
};
});
};
}