chore(build): preparing for CI

This commit is contained in:
2026-03-08 15:44:26 +01:00
parent a45f0424f4
commit 98403152ab
7 changed files with 98 additions and 77 deletions

View File

@@ -1,4 +1,5 @@
{
pkgs,
rustPlatform,
...
}: let
@@ -8,8 +9,17 @@
rustBuild = rustPlatform.buildRustPackage {
pname = name;
inherit version;
src = ../.;
src = pkgs.lib.cleanSource ../.;
cargoLock.lockFile = ../Cargo.lock;
buildInputs = [ pkgs.upx ];
useNextest = true;
meta = {
description = "Conventional commits for Jujutsu";
homepage = "https://labs.phundrak.com/phundrak/jj-cz";
};
postBuild = ''
${pkgs.upx}/bin/upx target/*/release/${name}
'';
};
in {
default = rustBuild;