nix-community.nixvim/update-scripts/version-info/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
387 B
Nix
Raw Normal View History

{
lib,
callPackage,
writeShellApplication,
}:
let
mainInfo = callPackage ./main.nix { };
in
writeShellApplication {
name = "version-info";
text = ''
(
echo "# DO NOT MODIFY!"
echo "# This file was generated by ${
lib.strings.removePrefix (toString ../.. + "/") (toString ./default.nix)
}"
cat ${mainInfo}
) > version-info.toml
'';
}