mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
lomiri.biometryd: Fetch submitted changes from upstream
This commit is contained in:
parent
4aac5539d0
commit
de49c2415c
@ -1,6 +1,7 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitLab
|
||||
, fetchpatch
|
||||
, gitUpdater
|
||||
, testers
|
||||
, boost
|
||||
@ -35,13 +36,41 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"dev"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace data/CMakeLists.txt \
|
||||
--replace '/etc' "\''${CMAKE_INSTALL_SYSCONFDIR}" \
|
||||
--replace '/lib' "\''${CMAKE_INSTALL_LIBDIR}"
|
||||
patches = [
|
||||
# https://gitlab.com/ubports/development/core/biometryd/-/merge_requests/31
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.com/OPNA2608/biometryd/-/commit/d01d979e4f98c6473761d1ace308aa182017804e.patch";
|
||||
hash = "sha256-JxL3BLuh33ptfneU1y2qNGFKpeMlZlTMwCK97Rk3aTA=";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.com/OPNA2608/biometryd/-/commit/3cec6a3d42ea6aba8892da2c771b317f44daf9e2.patch";
|
||||
hash = "sha256-Ij/aio38WmZ+NsUSbM195Gwb83goWIcCnJvGwAOJi50=";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.com/OPNA2608/biometryd/-/commit/e89bd9444bc1cfe84a9aa93faa23057c80f39564.patch";
|
||||
hash = "sha256-1vEG349X9+SvY/f3no/l5cMVGpdzC8h/8XOZwL/70Dc=";
|
||||
})
|
||||
|
||||
substituteInPlace data/biometryd.{conf,service} \
|
||||
--replace '/usr/bin' "$out/bin"
|
||||
# https://gitlab.com/ubports/development/core/biometryd/-/merge_requests/32
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.com/OPNA2608/biometryd/-/commit/9e52fad0139c5a45f69e6a6256b2b5ff54f77740.patch";
|
||||
hash = "sha256-DZSdzKq6EYgAllKSDgkGk2g57zHN+gI5fOoj7U5AcKY=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Remove with !31 patches, fetchpatch can't apply renames
|
||||
pushd data
|
||||
for type in conf service; do
|
||||
mv biometryd.$type biometryd.$type.in
|
||||
substituteInPlace biometryd.$type.in \
|
||||
--replace '/usr/bin' "\''${CMAKE_INSTALL_FULL_BINDIR}"
|
||||
done
|
||||
popd
|
||||
|
||||
# Uses pkg_get_variable, cannot substitute prefix with that
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace 'pkg_get_variable(SYSTEMD_SYSTEM_UNIT_DIR systemd systemdsystemunitdir)' 'set(SYSTEMD_SYSTEM_UNIT_DIR "${placeholder "out"}/lib/systemd/system")'
|
||||
|
||||
substituteInPlace src/biometry/qml/Biometryd/CMakeLists.txt \
|
||||
--replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/qml" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtQmlPrefix}"
|
||||
|
Loading…
Reference in New Issue
Block a user