Merge pull request #207315 from Artturin/fixcrossevalissues1

This commit is contained in:
Artturi 2022-12-23 18:50:57 +02:00 committed by GitHub
commit 0fbd19f3d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 13 deletions

View File

@ -1,6 +1,4 @@
{ pkgs, lib, stdenv, fetchFromGitHub }:
with pkgs.lib;
{ lib, stdenv, fetchFromGitHub, makeWrapper, getopt, git, coreutils }:
stdenv.mkDerivation rec {
pname = "gitflow";
@ -13,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-kHirHG/bfsU6tKyQ0khNSTyChhzHfzib+HyA3LOtBI8=";
};
nativeBuildInputs = [ pkgs.makeWrapper ];
nativeBuildInputs = [ makeWrapper ];
preBuild = ''
makeFlagsArray+=(prefix="$out")
@ -21,9 +19,9 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/git-flow \
--set FLAGS_GETOPT_CMD ${pkgs.getopt}/bin/getopt \
--suffix PATH : ${pkgs.git}/bin \
--prefix PATH : ${pkgs.coreutils}/bin
--set FLAGS_GETOPT_CMD ${getopt}/bin/getopt \
--suffix PATH : ${git}/bin \
--prefix PATH : ${coreutils}/bin
'';
meta = with lib; {

View File

@ -26,7 +26,7 @@
npmInstallHook = makeSetupHook
{
name = "npm-install-hook";
deps = [ makeWrapper ];
deps = [ buildPackages.makeWrapper ];
substitutions = {
hostNode = "${nodejs}/bin/node";
jq = "${buildPackages.jq}/bin/jq";

View File

@ -1,6 +1,7 @@
{ lib, pkgs, erlang }:
{ lib, __splicedPackages, erlang }:
let
pkgs = __splicedPackages;
inherit (lib) makeExtensible;
lib' = pkgs.callPackage ./lib.nix { };

View File

@ -1,5 +1,8 @@
{ pkgs, lib }:
{ __splicedPackages, lib }:
let
pkgs = __splicedPackages;
in
rec {
/* Similar to callPackageWith/callPackage, but without makeOverridable

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, fetchpatch, fixDarwinDylibNames, nativeBuildRoot }:
{ stdenv, lib, fetchurl, fetchpatch, fixDarwinDylibNames, nativeBuildRoot, buildRootOnly ? false }:
import ./base.nix {
version = "63.1";
@ -11,4 +11,4 @@ import ./base.nix {
})
];
patchFlags = [ "-p3" ];
} { inherit stdenv lib fetchurl fixDarwinDylibNames nativeBuildRoot; }
} { inherit stdenv lib fetchurl fixDarwinDylibNames nativeBuildRoot buildRootOnly; }

View File

@ -973,7 +973,8 @@ with pkgs;
makeShellWrapper = makeSetupHook
{ deps = [ dieHook ];
substitutions = {
shell = targetPackages.runtimeShell;
# targetPackages.runtimeShell only exists when pkgs == targetPackages (when targetPackages is not __raw)
shell = if targetPackages ? runtimeShell then targetPackages.runtimeShell else throw "makeWrapper/makeShellWrapper must be in nativeBuildInputs";
};
passthru = {
tests = tests.makeWrapper;