diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-04-28 15:26:58 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-04-29 01:22:04 +0200 |
commit | 0ce1b281511bd1a9505f416ec7ff1be3c3d7a243 (patch) | |
tree | e8f2915a6c6c66add1080c5acbda5c9a01642afc | |
parent | 0d570b60195e8db89cfa026f09e84a933a636e7d (diff) |
packages: 'package-with-patches' preserves package location.
* guix/packages.scm (package-with-patches): Preserve the 'location'
field of ORIGINAL.
-rw-r--r-- | guix/packages.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/guix/packages.scm b/guix/packages.scm index 55e5e70b8c..c825f427d8 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2014, 2015, 2017, 2018 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org> ;;; Copyright © 2016 Alex Kost <alezost@gmail.com> @@ -790,7 +790,8 @@ specifies modules in scope when evaluating SNIPPET." "Return package ORIGINAL with PATCHES applied." (package (inherit original) (source (origin (inherit (package-source original)) - (patches patches))))) + (patches patches))) + (location (package-location original)))) (define (package-with-extra-patches original patches) "Return package ORIGINAL with all PATCHES appended to its list of patches." |