2023-07-11 09:12:50 -06:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
substituteAll,
|
|
|
|
jq,
|
|
|
|
nix,
|
|
|
|
coreutils,
|
|
|
|
...
|
|
|
|
}:
|
2023-05-08 13:12:01 -06:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flake-warn";
|
|
|
|
version = "1.0.0";
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
install -Dm755 $script $out/bin/${pname}
|
|
|
|
'';
|
|
|
|
|
|
|
|
script = substituteAll {
|
|
|
|
src = ./flake-warn.sh;
|
|
|
|
isExecutable = true;
|
|
|
|
inherit jq nix coreutils;
|
|
|
|
inherit (stdenv) shell;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "script to warn when flake inputs are out of date";
|
|
|
|
homepage = "https://github.com/qbit/xin";
|
|
|
|
license = lib.licenses.isc;
|
2023-07-11 09:12:50 -06:00
|
|
|
maintainer = with lib.maintainers; [qbit];
|
2023-05-08 13:12:01 -06:00
|
|
|
mainProgram = "flake-warn";
|
|
|
|
};
|
|
|
|
}
|