programs/assorted: prefer makeBinaryWrapper over makeWrapper

This commit is contained in:
Colin 2024-07-03 16:18:37 +00:00
parent b2f36e4ef6
commit 631c47c9bc
6 changed files with 24 additions and 19 deletions

View File

@ -95,7 +95,7 @@ in
packageUnwrapped = pkgs.bemenu.overrideAttrs (upstream: {
nativeBuildInputs = (upstream.nativeBuildInputs or []) ++ [
pkgs.makeWrapper
pkgs.makeBinaryWrapper
];
# can alternatively be specified as CLI flags
postInstall = (upstream.postInstall or "") + ''

View File

@ -3,7 +3,7 @@
sane.programs.s6-rc = {
packageUnwrapped = pkgs.s6-rc.overrideAttrs (upstream: {
nativeBuildInputs = (upstream.nativeBuildInputs or []) ++ (with pkgs; [
makeWrapper
makeBinaryWrapper
]);
# s6-rc looks for files in /run/s6/{live,compiled,...} by default.
# let's patch that to be a user-specific runtime dir, since i run it as an ordinary user.

View File

@ -1,7 +1,7 @@
{ buildGoModule
, fetchFromGitHub
, lib
, makeWrapper
, makeBinaryWrapper
, nix-update-script
, pulseaudio
}:
@ -19,7 +19,7 @@ buildGoModule rec {
vendorHash = "sha256-yPwLilMiDR1aSeuk8AEmuYPsHPRWqiByGLwgkdI5t+s=";
nativeBuildInputs = [
makeWrapper
makeBinaryWrapper
];
postInstall = ''

View File

@ -20,7 +20,9 @@ in
(symlinkJoin {
name = "${gpodder.pname}-configured";
paths = [ gpodder remove-extra ];
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [
makeWrapper
];
# gpodder keeps all its feeds in a sqlite3 database.
# we can configure the feeds externally by wrapping gpodder and just instructing it to import

View File

@ -36,7 +36,7 @@
, git
, libtool
, luajit
, makeWrapper
, makeBinaryWrapper
, pkg-config
, stdenv
, symlinkJoin
@ -482,7 +482,7 @@ stdenv.mkDerivation rec {
cmake # for koreader/base submodule
git
libtool
makeWrapper
makeBinaryWrapper
pkg-config
];
buildInputs = [

View File

@ -1,10 +1,11 @@
{ pkgs
, bash
, lib
, makeWrapper
, python3
, stdenv
, zsh
{
pkgs,
bash,
lib,
makeBinaryWrapper,
python3,
stdenv,
zsh,
}:
let
@ -76,19 +77,21 @@ in rec {
# allow any package to be a list of packages, to support things like
# -p python3.pkgs.foo.propagatedBuildInputs
pkgsEnv' = lib.flatten pkgsEnv;
doWrap = pkgsEnv' != [];
makeWrapperArgs = lib.optionals (pkgsEnv' != []) [
"--suffix" "PATH" ":" (lib.makeBinPath pkgsEnv')
] ++ extraMakeWrapperArgs;
doWrap = makeWrapperArgs != [];
in
stdenv.mkDerivation (final: {
version = "0.1.0"; # default version
preferLocalBuild = true;
nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ [
makeWrapper
makeBinaryWrapper
];
makeWrapperArgs = [
"--suffix" "PATH" ":" (lib.makeBinPath pkgsEnv')
] ++ extraMakeWrapperArgs;
inherit makeWrapperArgs;
patchPhase = ''
substituteInPlace ${srcPath} \