Merge pull request from kira-bruneau/ccache

This commit is contained in:
Sandro 2021-09-11 18:18:06 +02:00 committed by GitHub
commit 6be345b829
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, substituteAll
, binutils
, asciidoctor
@ -14,18 +15,25 @@
let ccache = stdenv.mkDerivation rec {
pname = "ccache";
version = "4.4";
version = "4.4.1";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha256-ZewR1srksfKCxehhAg3i8m+0OvmOSF+24njbtcc1GQY=";
hash = "sha256-zsJoaaxYVV78vsxq2nbOh9ZAU1giKp8Kh6qJFL120CQ=";
};
outputs = [ "out" "man" ];
patches = [
# Use the shell builtin pwd for the basedir test
# See https://github.com/ccache/ccache/pull/933
(fetchpatch {
url = "https://github.com/ccache/ccache/commit/58fd1fbe75a1b5dc3f9151947ace15164fdef91c.patch";
sha256 = "BoBn4YSDy8pQxJ+fQHSsrUZDBVeLFWXIQ6CunDwMO7o=";
})
# When building for Darwin, test/run uses dwarfdump, whereas on
# Linux it uses objdump. We don't have dwarfdump packaged for
# Darwin, so this patch updates the test to also use objdump on