bees: substituteAll → makeWrapper
This is tidier, and removes manually-maintained nix-isms from the script.
This commit is contained in:
parent
01e04f8d81
commit
99e93489ae
@ -1,7 +1,3 @@
|
||||
#!@bash@/bin/bash
|
||||
PATH=@bash@/bin:@coreutils@/bin:@utillinux@/bin:@btrfsProgs@/bin:$PATH
|
||||
beesd_bin=@bees@/lib/bees/bees
|
||||
# PLEASE KEEP NIX-ISMS ABOVE THIS LINE TO EASE UPSTREAM MERGE
|
||||
#!/usr/bin/env bash
|
||||
|
||||
shopt -s extglob
|
||||
|
@ -1,12 +1,16 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, bash
|
||||
, btrfs-progs
|
||||
, coreutils
|
||||
, python3Packages
|
||||
, util-linux
|
||||
, makeWrapper
|
||||
, nixosTests
|
||||
|
||||
, stdenv
|
||||
# Build inputs
|
||||
, btrfs-progs
|
||||
, util-linux
|
||||
, python3Packages
|
||||
# bees-service-wrapper
|
||||
, bash
|
||||
, coreutils
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -26,6 +30,7 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
python3Packages.markdown # documentation build
|
||||
];
|
||||
|
||||
@ -38,12 +43,10 @@ stdenv.mkDerivation rec {
|
||||
unset -f git
|
||||
'';
|
||||
|
||||
inherit bash bees coreutils;
|
||||
utillinux = util-linux;
|
||||
btrfsProgs = btrfs-progs;
|
||||
postInstall = ''
|
||||
substituteAll ${./bees-service-wrapper} "$out"/bin/bees-service-wrapper
|
||||
chmod +x "$out"/bin/bees-service-wrapper
|
||||
makeWrapper ${./bees-service-wrapper} "$out"/bin/bees-service-wrapper \
|
||||
--prefix PATH : ${lib.makeBinPath [ bash coreutils util-linux btrfs-progs ]} \
|
||||
--set beesd_bin "$out"/lib/bees/bees
|
||||
'';
|
||||
|
||||
buildFlags = [
|
||||
|
Loading…
Reference in New Issue
Block a user