Replies: 1 comment 1 reply
-
From your pkgConfig = common: {
"git-gamble" = {
build = true;
app = true;
overrides = {
add-build-reqs.overrideAttrs = old: {
nativeBuildInputs =
(old.nativeBuildInputs or [])
++ (with common.pkgs; [
installShellFiles
bash
git
]);
preCheck = ''
patchShebangs tests/editor/fake_editor.sh
'';
postInstall = ''
echo $PATH
type installShellCompletion
installShellCompletion --fish target/$cargoBuildProfile/build/git-gamble-*/out/git-gamble.fish
installShellCompletion --bash target/$cargoBuildProfile/build/git-gamble-*/out/git-gamble.bash
installShellCompletion --zsh target/$cargoBuildProfile/build/git-gamble-*/out/_git-gamble
PATH="$PATH:target/release/bin/" sh ./script/usage.sh > git-gamble.1
installManPage git-gamble.1
'';
};
};
};
}; This should work I believe. To explain, |
Beta Was this translation helpful? Give feedback.
-
Hello,
I tried to upgrade Rust from 1.64 to 1.65 but it fails https://gitlab.com/pinage404/git-gamble/-/jobs/3342573954 ; i think it's because i use an old version of nix-cargo-integration
I'm trying to upgrade from https://github.com/yusdacra/nix-cargo-integration/tree/3df28172b283d56c5b4f08d0291087a12da7c6f1 (previous main branch) to https://github.com/yusdacra/nix-cargo-integration/tree/5cc9744efb05e9bd4f0760e487f177eb47b74dac (current main branch)
I don't understand how to upgrade
Example in https://yusdacra.github.io/nix-cargo-integration/pkg-config-options.html#overrides seems to not match the templates https://github.com/yusdacra/nix-cargo-integration/blob/master/templates/full/flake.nix (
overrideAttrs
vsoverride
)Tries :
https://gitlab.com/pinage404/git-gamble/-/jobs/3350297601
https://gitlab.com/pinage404/git-gamble/-/jobs/3351015661
Related to #53
How to use
installShellFiles
with the new API ?Beta Was this translation helpful? Give feedback.
All reactions