meta: rename 'vendor' to contrib; don't vendor service in Nix derivation

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696479e976a7f4db18e6501e347a4940ce28
This commit is contained in:
raf 2025-10-15 14:22:56 +03:00
commit b50702480f
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
4 changed files with 10 additions and 15 deletions

View file

@ -30,18 +30,12 @@ in
strictDeps = true;
# Whether cargo's target directory should be copied as an output
doInstallCargoArtifacts = true;
# Install Systemd service for Stash into $out/share.
# This can be used to use Stash in 'systemd.packages'
# Since Crane doesn't have a good way of enforcing that our symlinks
# generated by the build wrapper are correctly linked, we should link
# them *manually*. The postInstallCheck phase that follows will check
# to verify if all of those links are in place.
postInstall = ''
mkdir -p $out
install -Dm755 ${../vendor/stash.service} $out/share/stash.service
# Since Crane doesn't have a good way of enforcing that our symlinks
# generated by the build wrapper are correctly linked, we should link
# them *manually*.
for bin in stash-copy stash-paste wl-copy wl-paste; do
ln -sf $out/bin/stash $out/bin/$bin
done
@ -51,7 +45,7 @@ in
doInstallCheck = true;
# After the version check, let's see if all binaries are linked correctly.
# We could probably add a check phase to the versions of each.
# We could probably add a check phase to get the versions of each.
postInstallCheck = ''
for bin in stash stash-copy stash-paste wl-copy wl-paste; do
[ -x "$out/bin/$bin" ] || { echo "$bin missing"; exit 1; }