mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 22:17:41 +00:00
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:
parent
a9da424e70
commit
b50702480f
4 changed files with 10 additions and 15 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue