xin/pkgs/flake-warn.nix

32 lines
597 B
Nix
Raw Normal View History

2023-09-12 08:44:05 -06:00
{ stdenv
, lib
, substituteAll
, jq
, nix
, coreutils
, ...
2023-07-11 09:12:50 -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-09-12 08:44:05 -06:00
maintainer = with lib.maintainers; [ qbit ];
mainProgram = "flake-warn";
};
}