Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0d7c433ab34b
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5a4fb8d501bf
Choose a head ref
  • 3 commits
  • 10 files changed
  • 1 contributor

Commits on Apr 11, 2020

  1. fetchurl: use read correctly

    globin committed Apr 11, 2020
    Copy the full SHA
    374284e View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    ff5baf8 View commit details
  3. Copy the full SHA
    5a4fb8d View commit details
1 change: 0 additions & 1 deletion pkgs/applications/science/logic/spass/default.nix
Original file line number Diff line number Diff line change
@@ -18,7 +18,6 @@ stdenv.mkDerivation {
};

sourceRoot = ".";
dontMakeSourcesWritable = true;

nativeBuildInputs = [ bison flex ];

2 changes: 1 addition & 1 deletion pkgs/build-support/trivial-builders.nix
Original file line number Diff line number Diff line change
@@ -292,7 +292,7 @@ rec {
in runCommand name args
''
mkdir -p $out
while IFS= read path; do
while IFS= read -r -d $'\0' path; do
${lndir}/bin/lndir -silent $path $out
done < <(${jq}/bin/jq -r <.attrs.json '.paths[]')
${postBuild}
1 change: 0 additions & 1 deletion pkgs/data/misc/tzdata/default.nix
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@ stdenv.mkDerivation rec {
];

sourceRoot = ".";
dontMakeSourcesWritable = true;

outputs = [ "out" "bin" "man" "dev" ];
propagatedBuildOutputs = [];
1 change: 0 additions & 1 deletion pkgs/data/soundfonts/fluid/default.nix
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@ stdenv.mkDerivation {
};

sourceRoot = ".";
dontMakeSourcesWritable = true;

installPhase = ''
install -Dm644 "FluidR3 GM2-2.SF2" $out/share/soundfonts/FluidR3_GM2-2.sf2
2 changes: 1 addition & 1 deletion pkgs/development/interpreters/guile/2.0.nix
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@
# "libgcc_s.so.1 must be installed for pthread_cancel to work".

# don't have "libgcc_s.so.1" on darwin
LDFLAGS = stdenv.lib.optionalString (!stdenv.isDarwin) "-lgcc_s";
env.LDFLAGS = stdenv.lib.optionalString (!stdenv.isDarwin) "-lgcc_s";

configureFlags = [ "--with-libreadline-prefix" ]
++ stdenv.lib.optionals stdenv.isSunOS [
2 changes: 1 addition & 1 deletion pkgs/development/libraries/gettext/default.nix
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {

hardeningDisable = [ "format" ];

LDFLAGS = if stdenv.isSunOS then "-lm -lmd -lmp -luutil -lnvpair -lnsl -lidmap -lavl -lsec" else "";
env.LDFLAGS = lib.optionalString stdenv.isSunOS "-lm -lmd -lmp -luutil -lnvpair -lnsl -lidmap -lavl -lsec";

configureFlags = [
"--disable-csharp" "--with-xz"
Original file line number Diff line number Diff line change
@@ -11,7 +11,6 @@ stdenv.mkDerivation rec {

srcs = [ wheel.src pip.src setuptools.src ];
sourceRoot = ".";
dontMakeSourcesWritable = true;

dontUseSetuptoolsBuild = true;
dontUsePipInstall = true;
10 changes: 10 additions & 0 deletions pkgs/stdenv/generic/setup.sh
Original file line number Diff line number Diff line change
@@ -862,6 +862,11 @@ unpackPhase() {
fi
done

if [ "$sourceRoot" == "." ]; then
mkdir source
cd source
fi

# Unpack all source archives.
for i in "${srcs[@]}"; do
unpackFile "$i"
@@ -897,6 +902,11 @@ unpackPhase() {
exit 1
fi

if [ "$sourceRoot" == "." ]; then
cd ..
sourceRoot=source
fi

echo "source root is $sourceRoot"

# By default, add write permission to the sources. This is often
10 changes: 4 additions & 6 deletions pkgs/tools/graphics/optipng/default.nix
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {

buildInputs = [ libpng ];

LDFLAGS = optional static "-static";
env.LDFLAGS = optionalString static "-static";
# Workaround for crash in cexcept.h. See
# https://github.com/NixOS/nixpkgs/issues/28106
preConfigure = ''
@@ -25,15 +25,13 @@ stdenv.mkDerivation rec {
configureFlags = [
"--with-system-zlib"
"--with-system-libpng"
] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
#"-prefix=$out"
];

postInstall = if stdenv.hostPlatform != stdenv.buildPlatform && stdenv.hostPlatform.isWindows then ''
postInstall = optionalString (stdenv.hostPlatform != stdenv.buildPlatform && stdenv.hostPlatform.isWindows) ''
mv "$out"/bin/optipng{,.exe}
'' else null;
'';

meta = with stdenv.lib; {
meta = {
homepage = http://optipng.sourceforge.net/;
description = "A PNG optimizer";
license = licenses.zlib;
2 changes: 1 addition & 1 deletion pkgs/tools/networking/iftop/default.nix
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ stdenv.mkDerivation {

# Explicitly link against libgcc_s, to work around the infamous
# "libgcc_s.so.1 must be installed for pthread_cancel to work".
LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
env.LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";

preConfigure = ''
cp ${automake}/share/automake*/config.{sub,guess} config