about summary refs log tree commit diff
path: root/nixpkgs/pkgs/build-support
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2019-02-23 21:12:16 +0100
committerAlyssa Ross <hi@alyssa.is>2019-02-25 18:23:19 +0000
commit0da874d0017790baa83771089a1c7a4642104c3c (patch)
tree1b83b278398e1843d99216bc530fc549d45b036e /nixpkgs/pkgs/build-support
parentb06178e19d00ff97b088027a2d9a651200327c29 (diff)
downloadnixlib-0da874d0017790baa83771089a1c7a4642104c3c.tar
nixlib-0da874d0017790baa83771089a1c7a4642104c3c.tar.gz
nixlib-0da874d0017790baa83771089a1c7a4642104c3c.tar.bz2
nixlib-0da874d0017790baa83771089a1c7a4642104c3c.tar.lz
nixlib-0da874d0017790baa83771089a1c7a4642104c3c.tar.xz
nixlib-0da874d0017790baa83771089a1c7a4642104c3c.tar.zst
nixlib-0da874d0017790baa83771089a1c7a4642104c3c.zip
skawarePackages.execline: wrap execlineb with tools
The execlineb program is the launcher (and lexer) of execline scripts.
So it makes a lot of sense to have all the small tools in scope by
default.
We append to the end of PATH so that they can be easily overwritten by
the user.

Co-authored-by: Alyssa Ross <hi@alyssa.is>
(cherry picked from commit b64d25c44782027414509460c1900646dee57db1)
Diffstat (limited to 'nixpkgs/pkgs/build-support')
-rw-r--r--nixpkgs/pkgs/build-support/skaware/build-skaware-package.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/build-support/skaware/build-skaware-package.nix b/nixpkgs/pkgs/build-support/skaware/build-skaware-package.nix
index 51921fdfbdc7..5ae8985e3abe 100644
--- a/nixpkgs/pkgs/build-support/skaware/build-skaware-package.nix
+++ b/nixpkgs/pkgs/build-support/skaware/build-skaware-package.nix
@@ -19,6 +19,10 @@ in {
   # mostly for moving and deleting files from the build directory
   # : lines
 , postInstall
+  # packages with setup hooks that should be run
+  # (see definition of `makeSetupHook`)
+  # : list drv
+, setupHooks ? []
   # : list Maintainer
 , maintainers ? []
 
@@ -82,6 +86,8 @@ in stdenv.mkDerivation {
   dontDisableStatic = true;
   enableParallelBuilding = true;
 
+  nativeBuildInputs = setupHooks;
+
   configureFlags = configureFlags ++ [
     "--enable-absolute-paths"
     (if stdenv.isDarwin