Files
nixpkgs/pkgs/by-name/ov/overcommit/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
906 B
Nix

{
lib,
bundlerApp,
bundlerUpdateScript,
git,
makeWrapper,
overcommit,
testers,
}:
bundlerApp {
pname = "overcommit";
gemdir = ./.;
exes = [ "overcommit" ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/overcommit --prefix PATH : ${lib.makeBinPath [ git ]}
'';
passthru = {
tests.version = testers.testVersion {
package = overcommit;
version = (import ./gemset.nix).overcommit.version;
};
updateScript = bundlerUpdateScript "overcommit";
};
meta = {
description = "Tool to manage and configure Git hooks";
homepage = "https://github.com/sds/overcommit";
changelog = "https://github.com/sds/overcommit/blob/main/CHANGELOG.md";
license = lib.licenses.mit;
mainProgram = "overcommit";
maintainers = with lib.maintainers; [
anthonyroussel
];
platforms = lib.platforms.unix;
};
}