Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b8edfed0e2b3
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 021ee7d93be8
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 1, 2018

  1. gflags: build on case-insensitive FSs, add meta

    Darwin machines come with a case-insensitive filesystem by default. The
    gflags package's source contains a file 'BUILD' and the build process
    attempts to create a directory called 'build', which fails on
    case-insensitive filesystems.
    
    Add a prePatch hook to rename the BUILD file (which is for use with an
    unrelated build tool) to something that doesn't conflict with the
    'build' directory. This hook allows this derivation to be built on
    case-insensitive filesystems.
    
    Add metadata to the derivation because previously it had none.
    
    (cherry picked from commit 66bbee3)
    Dan Lidral-Porter authored and LnL7 committed Apr 1, 2018
    Copy the full SHA
    021ee7d View commit details
Showing with 9 additions and 0 deletions.
  1. +9 −0 pkgs/development/libraries/gflags/default.nix
9 changes: 9 additions & 0 deletions pkgs/development/libraries/gflags/default.nix
Original file line number Diff line number Diff line change
@@ -7,4 +7,13 @@ stdenv.mkDerivation
sha256 = "03lxc2ah8i392kh1naq99iip34k4fpv22kwflyx3byd2ssycs9xf";
};
nativeBuildInputs = [ cmake ];
# for case-insensitive filesystems
prePatch = "mv BUILD BUILD.bazel";

meta = with stdenv.lib; {
description = "C++ library that implements commandline flags processing";
homepage = "https://github.com/gflags/gflags";
license = licenses.bsd3;
platforms = platforms.unix;
};
}