38 lines
852 B
Nix
38 lines
852 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
buildNpmPackage,
|
||
|
|
fetchFromGitHub,
|
||
|
|
nix-update-script,
|
||
|
|
npm-lockfile-fix,
|
||
|
|
}:
|
||
|
|
|
||
|
|
buildNpmPackage rec {
|
||
|
|
pname = "opencommit";
|
||
|
|
version = "3.2.10";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "di-sukharev";
|
||
|
|
repo = "opencommit";
|
||
|
|
rev = "v${version}";
|
||
|
|
hash = "sha256-FsPtTuvBvbDIldwxLbuXOxNfOIQ8THboRB6ghTSzTbI=";
|
||
|
|
postFetch = ''
|
||
|
|
cd $out
|
||
|
|
# Fix lockfile issues with bundled dependencies
|
||
|
|
${lib.getExe npm-lockfile-fix} package-lock.json
|
||
|
|
'';
|
||
|
|
};
|
||
|
|
|
||
|
|
npmDepsHash = "sha256-Ilf9lfFegraQRkYU5v7Zv6MubpN5m6bck3j5UkTXk+4=";
|
||
|
|
|
||
|
|
passthru.updateScript = nix-update-script { };
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "AI-powered commit message generator";
|
||
|
|
homepage = "https://www.npmjs.com/package/opencommit";
|
||
|
|
license = lib.licenses.mit;
|
||
|
|
maintainers = [ lib.maintainers.matteopacini ];
|
||
|
|
mainProgram = "oco";
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|