2023-12-12 03:22:25 +00:00
|
|
|
{ fetchpatch2, fetchurl, lib }:
|
|
|
|
variant: date:
|
2023-05-10 22:36:27 +00:00
|
|
|
let
|
2023-05-10 22:51:34 +00:00
|
|
|
fetchpatch' = {
|
|
|
|
saneCommit ? null,
|
2023-10-27 13:29:26 +00:00
|
|
|
nixpkgsCommit ? null,
|
2023-05-10 22:51:34 +00:00
|
|
|
prUrl ? null,
|
2023-05-24 23:08:12 +00:00
|
|
|
hash ? null,
|
|
|
|
title ? null,
|
2023-10-27 13:29:26 +00:00
|
|
|
revert ? false,
|
2023-12-12 03:22:25 +00:00
|
|
|
merged ? {},
|
2023-05-10 22:51:34 +00:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
url = if prUrl != null then
|
|
|
|
# prUrl takes precedence over any specific commit
|
|
|
|
"${prUrl}.diff"
|
2023-10-27 13:29:26 +00:00
|
|
|
else if saneCommit != null then
|
2023-05-10 22:51:34 +00:00
|
|
|
"https://git.uninsane.org/colin/nixpkgs/commit/${saneCommit}.diff"
|
2023-10-27 13:29:26 +00:00
|
|
|
else
|
|
|
|
"https://github.com/NixOS/nixpkgs/commit/${nixpkgsCommit}.patch"
|
2023-05-10 22:51:34 +00:00
|
|
|
;
|
2023-12-12 03:22:25 +00:00
|
|
|
isMerged = merged ? "${variant}" && lib.versionAtLeast date merged."${variant}";
|
|
|
|
in if !isMerged then fetchpatch2 (
|
2023-10-27 13:29:26 +00:00
|
|
|
{ inherit revert url; }
|
2023-05-24 23:08:12 +00:00
|
|
|
// (if hash != null then { inherit hash; } else {})
|
|
|
|
// (if title != null then { name = title; } else {})
|
2023-12-11 22:12:42 +00:00
|
|
|
) else null;
|
2023-05-10 22:36:27 +00:00
|
|
|
in [
|
2024-02-28 18:27:02 +00:00
|
|
|
# if a patch has been merged, use
|
|
|
|
# merged.staging = "<date>";
|
|
|
|
# merged.master = "<date>";
|
|
|
|
# etc, where "date" is like "20240228181608"
|
|
|
|
# and can be found with `nix-repl > :lf . > lastModifiedDate`
|
2024-03-02 20:39:04 +00:00
|
|
|
|
2024-03-22 02:28:37 +00:00
|
|
|
(fetchpatch' {
|
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/298001";
|
|
|
|
saneCommit = "d599839060400762a67d2c01d15b102ffe75e703";
|
|
|
|
title = "gnupg: fix cross compilation";
|
2024-03-23 09:29:34 +00:00
|
|
|
hash = "sha256-d3kD2/UyMzzdBkiEdWtCibbWiPWBZLUWRry1TMkS25g=";
|
2024-03-22 02:28:37 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
(fetchpatch' {
|
|
|
|
# fixes build break
|
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/297984";
|
|
|
|
title = "handbrake: 1.6.1 -> 1.7.3";
|
2024-03-23 18:02:45 +00:00
|
|
|
hash = "sha256-9CshjlhJRKCXBPZslyTdLnlfHSX+f0nrz+dqayClB8w=";
|
2024-03-22 02:28:37 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
(fetchpatch' {
|
|
|
|
# fixes build break
|
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/297929";
|
|
|
|
title = "space-cadet-pinball: 2.0.1 -> 2.1.0";
|
|
|
|
hash = "sha256-XntS18eEnB29zjV8jWTzVI0JUHWysjv1Z/ooIW4nvEo=";
|
|
|
|
})
|
|
|
|
(fetchpatch' {
|
|
|
|
# fixes build break
|
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/297581";
|
|
|
|
title = "pwvucontrol: 0.2 -> 0.3.1";
|
|
|
|
hash = "sha256-OX6qx4WbQzZR2bu04nPHk9lURGH7kN0TRmeKOXfzCT8=";
|
|
|
|
})
|
|
|
|
|
2024-03-02 20:39:04 +00:00
|
|
|
(fetchpatch' {
|
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/292868";
|
|
|
|
saneCommit = "f090c1cd6bb5bbb14a86ec90ced78ca1a165a4fe";
|
|
|
|
title = "mpvScripts.uosc: 5.1.1 -> 5.2.0";
|
2024-03-02 21:23:44 +00:00
|
|
|
# hash = "sha256-oGRysTvCrN8buMSpdAOg87cyqJAffwgwAVZ73ocKsIY=";
|
|
|
|
hash = "sha256-AzkMYm9Pm85Xfm+nd44oKIULZYGyMXulmjFbutouysc=";
|
2024-03-02 20:39:04 +00:00
|
|
|
})
|
|
|
|
|
2024-03-22 02:28:37 +00:00
|
|
|
(fetchpatch' {
|
|
|
|
# TODO: rebase (or split into smaller PRs)
|
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/292415";
|
|
|
|
title = "sway/hyprland: cross compilation fixes";
|
|
|
|
hash = "sha256-IDf8OcZzFgw0DalxzBqbqP7TZVnZkzoRHQ51RlR1xWc=";
|
|
|
|
})
|
2024-02-29 21:35:02 +00:00
|
|
|
|
2023-12-13 03:47:20 +00:00
|
|
|
# (fetchpatch' {
|
2023-11-29 13:56:17 +00:00
|
|
|
# title = "nixos/slskd: allow omitting username from yaml config";
|
|
|
|
# saneCommit = "541c37e8689b6422ea07be1395f1a63357bb0c63";
|
|
|
|
# hash = "sha256-xQEj/oIfNcE4td9jxzDzhlnIYpncOOdXZuswkmcLNuk=";
|
|
|
|
# })
|
|
|
|
# (fetchpatch' {
|
|
|
|
# title = "nixos/slskd: don't enable nginx unless nginx.enable was set";
|
|
|
|
# saneCommit = "ea084e5739a68436cc240aeca5c10b92de1e3138";
|
|
|
|
# hash = "sha256-25zB5eM1WBVEigmrq1mY9GXwEkS/jf5v7BCfmN6Wux4=";
|
|
|
|
# })
|
2023-11-28 13:57:52 +00:00
|
|
|
(fetchpatch' {
|
2023-11-29 13:56:17 +00:00
|
|
|
title = "nixos/slskd: option fixes";
|
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/270646";
|
|
|
|
hash = "sha256-5brmmPfYp7G+5Dr5q2skWSwkrEwsRAe/UetoN0AqGjY=";
|
2023-11-28 13:57:52 +00:00
|
|
|
})
|
2023-10-24 15:28:48 +00:00
|
|
|
(fetchpatch' {
|
|
|
|
title = "gcr: remove build gnupg from runtime closure";
|
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/263158";
|
|
|
|
saneCommit = "8c71ab22c6df4e5ce290e131a7769688b0c5a017";
|
|
|
|
# hash = "sha256-9PNKzNlJ62WAq6H+tqlt0spFZ1DPP1hHmpx0YPuieFE=";
|
|
|
|
hash = "sha256-6hUdsExHSMHy6FMY1+OLtVmKpRwysGIVkcDpYv7RRBk=";
|
|
|
|
})
|
2024-02-25 19:05:53 +00:00
|
|
|
|
|
|
|
# 2024/02/25: still outstanding; merge conflicts
|
|
|
|
# (fetchpatch' {
|
|
|
|
# title = "hspell: remove build perl from runtime closure";
|
|
|
|
# prUrl = "https://github.com/NixOS/nixpkgs/pull/263182";
|
|
|
|
# hash = "sha256-Wau+PB+EUQDvWX8Kycw1sNrM3GkPVjKSS4niIDI0sjM=";
|
|
|
|
# })
|
|
|
|
|
2023-10-21 10:15:03 +00:00
|
|
|
# (fetchpatch' {
|
|
|
|
# title = "trust-dns: 0.23.0 -> 0.24.0";
|
|
|
|
# prUrl = "https://github.com/NixOS/nixpkgs/pull/262466";
|
|
|
|
# hash = "sha256-s8ra/tbD/xAfU3HI3wv+aQ0dip1kKQcVrJvLG6DNctY=";
|
|
|
|
# })
|
|
|
|
# (fetchpatch' {
|
|
|
|
# title = "trust-dns: rebrand as hickory-dns";
|
|
|
|
# prUrl = "https://github.com/NixOS/nixpkgs/pull/262268";
|
|
|
|
# hash = "sha256-TxQiR+OS4YriLNViTg4H78Z3f3IjBVodiFAkOUCeNic=";
|
|
|
|
# })
|
2023-10-12 00:00:54 +00:00
|
|
|
(fetchpatch' {
|
|
|
|
title = "rpm: 4.18.1 -> 4.19.0";
|
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/260558";
|
2023-11-25 10:28:38 +00:00
|
|
|
hash = "sha256-kwod+6SbUZechzbmu1D4Hlh6pYiPD18wcqetk0OIOrA=";
|
2023-10-12 00:00:54 +00:00
|
|
|
})
|
2023-09-07 20:04:53 +00:00
|
|
|
|
2023-06-25 01:17:14 +00:00
|
|
|
# (fetchpatch' {
|
|
|
|
# # XXX: doesn't cleanly apply; fetch `firefox-pmos-mobile` branch from my git instead
|
|
|
|
# title = "firefox-pmos-mobile: init at -pmos-2.2.0";
|
|
|
|
# prUrl = "https://github.com/NixOS/nixpkgs/pull/121356";
|
|
|
|
# hash = "sha256-eDsR1cJC/IMmhJl5wERpTB1VGawcnMw/gck9sI64GtQ=";
|
|
|
|
# })
|
|
|
|
|
2024-02-27 17:29:17 +00:00
|
|
|
# (fetchpatch' {
|
|
|
|
# title = "firefox-pmos-mobile: init at 4.0.2";
|
|
|
|
# saneCommit = "c3becd7cdf144d85d12e2e76663e9549a0536efd";
|
|
|
|
# hash = "sha256-fQdKm5kIFzheEUgSkwxrivynJk221suigWJ/WxZJ0Zk=";
|
|
|
|
# })
|
2023-06-26 10:09:32 +00:00
|
|
|
# (fetchpatch' {
|
|
|
|
# saneCommit = "70c12451b783d6310ab90229728d63e8a903c8cb";
|
|
|
|
# title = "firefox-pmos-mobile: init at -pmos-2.2.0";
|
2023-06-27 01:59:49 +00:00
|
|
|
# hash = "sha256-mA22g3ZIERVctq8Uk5nuEsS1JprxA+3DvukJMDTOyso=";
|
2023-06-26 10:09:32 +00:00
|
|
|
# })
|
|
|
|
# (fetchpatch' {
|
|
|
|
# saneCommit = "ee19a28aa188bb87df836a4edc7b73355b8766eb";
|
|
|
|
# title = "firefox-pmos-mobile: format the generated policies.nix file";
|
|
|
|
# hash = "sha256-K8b3QpyVEjajilB5w4F1UHGDRGlmN7i66lP7SwLZpWI=";
|
|
|
|
# })
|
|
|
|
# (fetchpatch' {
|
|
|
|
# saneCommit = "c068439c701c160ba15b6ed5abe9cf09b159d584";
|
|
|
|
# title = "firefox-pmos-mobile: implement an updateScript";
|
|
|
|
# hash = "sha256-afiGDHbZIVR3kJuWABox2dakyiRb/8EgDr39esqwcEk=";
|
|
|
|
# })
|
|
|
|
# (fetchpatch' {
|
|
|
|
# saneCommit = "865c9849a9f7bd048e066c2efd8068ecddd48e33";
|
|
|
|
# title = "firefox-pmos-mobile: 2.2.0 -> 4.0.2";
|
|
|
|
# hash = "sha256-WjWSW0qE+cypvUkDRfK7d9Te8m5zQXwF33z8nEhbvrE=";
|
|
|
|
# })
|
|
|
|
# (fetchpatch' {
|
|
|
|
# saneCommit = "eb6aae632c55ce7b0a76bca549c09da5e1f7761b";
|
|
|
|
# title = "firefox-pmos-mobile: refactor and populate `passthru` to aid external consumers";
|
|
|
|
# hash = "sha256-/LhbwXjC8vuKzIuGQ3/FGplbLllsz57nR5y+PeDjGuA=";
|
|
|
|
# })
|
|
|
|
# (fetchpatch' {
|
|
|
|
# saneCommit = "c9b90ef1e17ea21ac779a86994e5d9079a2057b9";
|
|
|
|
# title = "librewolf-pmos-mobile: init";
|
|
|
|
# hash = "sha256-oQEM3EZfAOmfZzDu9faCqyOFZsdHYGn1mVBgkxt68Zg=";
|
|
|
|
# })
|
2023-06-25 18:05:06 +00:00
|
|
|
|
2023-02-14 10:19:32 +00:00
|
|
|
# (fetchpatch {
|
|
|
|
# # stdenv: fix cc for pseudo-crosscompilation
|
|
|
|
# # closed because it breaks pkgsStatic (as of 2023/02/12)
|
|
|
|
# url = "https://github.com/NixOS/nixpkgs/pull/196497.diff";
|
|
|
|
# hash = "sha256-eTwEbVULYjmOW7zUFcTUqvBZqUFjHTKFhvmU2m3XQeo=";
|
|
|
|
# })
|
|
|
|
|
2023-06-29 09:43:17 +00:00
|
|
|
(fetchpatch' {
|
|
|
|
title = "gthumb: make the webservices feature be optional";
|
2023-07-05 09:03:25 +00:00
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/240602";
|
2023-09-07 11:43:41 +00:00
|
|
|
saneCommit = "e83130f2770c314b2a482e1792b010da66cdd5de";
|
2023-09-13 02:53:06 +00:00
|
|
|
hash = "sha256-GlYWpOVZvr0oFAs4RdSUf7LJD3FmGsCaTm32GPhbBfc=";
|
2023-06-29 09:43:17 +00:00
|
|
|
})
|
2023-08-03 06:02:42 +00:00
|
|
|
(fetchpatch' {
|
2023-11-15 07:12:46 +00:00
|
|
|
# TODO: send for review once hspell fix is merged <https://github.com/NixOS/nixpkgs/pull/263182>
|
|
|
|
# this patch works as-is, but hspell keeps a ref to build perl and thereby pollutes this closure as well.
|
2023-08-03 06:02:42 +00:00
|
|
|
title = "gtkspell2: support cross compilation";
|
|
|
|
saneCommit = "56348833b4411e9fe2016c24c7fc4af1e3c1d28a";
|
2024-01-11 15:58:44 +00:00
|
|
|
hash = "sha256-RUw88u7CI2C1IpRUhGbdYamHsPT1jBV0ROyVvzLWdv8=";
|
2023-08-03 06:02:42 +00:00
|
|
|
})
|
|
|
|
(fetchpatch' {
|
|
|
|
title = "libgnt: 2.14.1 -> 2.14.3";
|
2023-08-03 09:23:26 +00:00
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/246937";
|
2023-08-03 06:02:42 +00:00
|
|
|
saneCommit = "ecd423195d72036a209912868ad02742cb4b6fcd";
|
2023-08-03 09:23:26 +00:00
|
|
|
# hash = "sha256-u4V/UHNtd2c3+FppuJ5LeLNSV8ZaLe8cqj8HmcW2a/0=";
|
2023-11-08 10:56:18 +00:00
|
|
|
hash = "sha256-Tymh8r75pcoEzsqkU0wzm+vK137P2pEEilgNIyM8udQ=";
|
2023-08-03 06:02:42 +00:00
|
|
|
})
|
|
|
|
(fetchpatch' {
|
2023-10-11 09:58:44 +00:00
|
|
|
# TODO: send for review once the libgnt patch above is merged
|
2023-08-03 06:02:42 +00:00
|
|
|
title = "pidgin: support cross compilation";
|
|
|
|
saneCommit = "caacbcc54e217f5ee9281422777a7f712765f71a";
|
2024-01-11 15:58:44 +00:00
|
|
|
hash = "sha256-UyZaNNp84zKShuo6zu0nfZ2FygHGcmV63Ww4Y4CtCF0=";
|
2023-08-03 06:02:42 +00:00
|
|
|
})
|
2023-07-31 00:03:21 +00:00
|
|
|
|
2023-08-28 11:14:51 +00:00
|
|
|
(fetchpatch' {
|
|
|
|
title = "libgweather: enable introspection on cross builds";
|
2023-08-28 12:04:03 +00:00
|
|
|
prUrl = "https://github.com/NixOS/nixpkgs/pull/251956";
|
2023-08-28 11:14:51 +00:00
|
|
|
saneCommit = "7a2d0a90cc558ea71dfc78356e61b0675b995634";
|
2023-11-08 10:56:18 +00:00
|
|
|
hash = "sha256-4x1yJgrgmyqYiF+u3A9BrcbNQPQ270c+/jFBYsJoFfI=";
|
2023-08-28 11:14:51 +00:00
|
|
|
})
|
2023-08-16 10:54:07 +00:00
|
|
|
|
2022-10-09 01:21:38 +00:00
|
|
|
# for raspberry pi: allow building u-boot for rpi 4{,00}
|
|
|
|
# TODO: remove after upstreamed: https://github.com/NixOS/nixpkgs/pull/176018
|
|
|
|
# (it's a dupe of https://github.com/NixOS/nixpkgs/pull/112677 )
|
|
|
|
./02-rpi4-uboot.patch
|
|
|
|
|
2024-01-01 14:46:37 +00:00
|
|
|
# (fetchpatch' {
|
|
|
|
# title = "gnustep: remove `rec` to support `overrideScope`";
|
|
|
|
# saneCommit = "69162cbf727264e50fc9d7222a03789d12644705";
|
|
|
|
# hash = "sha256-rD0es4uUbaLMrI9ZB2HzPmRLyu/ixNBLAFyDJtFHNko=";
|
|
|
|
# })
|
|
|
|
|
|
|
|
# (fetchpatch' {
|
|
|
|
# # 2023/11/14: deps don't cross compile (e.g. pipewire; qtsvg)
|
|
|
|
# title = "clapper: support cross compilation";
|
|
|
|
# saneCommit = "8a171b49aca406f8220f016e56964b3fae53a3df";
|
|
|
|
# hash = "sha256-R11IYatGhSXxZnJxJid519Oc9Kh56D9NT2/cxf2CLuM=";
|
|
|
|
# })
|
|
|
|
# these probably work, but i don't use them
|
|
|
|
# (fetchpatch' {
|
|
|
|
# title = "networkmanager-openvpn: support cross compilation";
|
|
|
|
# saneCommit = "6f53c267fbeb2ff543f075032a7e73af2d4bcb9e";
|
|
|
|
# hash = "sha256-gq9AyKH7/k2ZVSZ3jpPJPt3uAM+CllXQnaiC1tE1r/8=";
|
|
|
|
# })
|
|
|
|
# (fetchpatch' {
|
|
|
|
# title = "WIP: networkmanager-sstp: support cross compilation";
|
|
|
|
# saneCommit = "6de63fe320406ec9a509db721c52b3894a93bda2";
|
|
|
|
# hash = "sha256-EY3bQuv/80JbpquUJhc89CcYAgN9A9KkpsSitw/684I=";
|
|
|
|
# })
|
|
|
|
# (fetchpatch' {
|
|
|
|
# title = "WIP: networkmanager-l2tp: support cross compilation";
|
|
|
|
# saneCommit = "7a4191c570b0e5a1ab257222c26a4a2ecb945037";
|
|
|
|
# hash = "sha256-FiPJhHGqZ8MFwLY+1t6HgbK6ndomFSYUKvApvrikRHE=";
|
|
|
|
# })
|
|
|
|
|
|
|
|
# (fetchpatch' {
|
|
|
|
# # doesn't apply cleanly. use build result in <working/zcash>
|
|
|
|
# title = "zcash: 5.4.2 -> 5.7.0";
|
|
|
|
# prUrl = "https://github.com/NixOS/nixpkgs/pull/229810";
|
|
|
|
# hash = "sha256-ProoPJ10rUtOZh2PzpegviG6Ip1zSuWC92BpP+ux9ZQ=";
|
|
|
|
# })
|
|
|
|
# (fetchpatch' {
|
|
|
|
# # disabled, at least until the PR is updated to use `pkg-config` instead of `pkgconfig`.
|
|
|
|
# # the latter is an alias, which breaks nix-index
|
|
|
|
# title = "phog: init at 0.1.3";
|
|
|
|
# prUrl = "https://github.com/NixOS/nixpkgs/pull/251249";
|
|
|
|
# hash = "sha256-e38Z7sO7xDQHzE9UOfbptc6vJuONE5eP9JFp2Nzx53E=";
|
|
|
|
# })
|
2023-08-01 22:44:53 +00:00
|
|
|
|
|
|
|
# fix qt6.qtbase and qt6.qtModule to cross-compile.
|
|
|
|
# unfortunately there's some tangle that makes that difficult to do via the normal `override` facilities
|
|
|
|
# ./2023-03-03-qtbase-cross-compile.patch
|
|
|
|
|
|
|
|
# qt6 qtwebengine: specify `python` as buildPackages
|
|
|
|
# ./2023-06-02-qt6-qtwebengine-cross.patch
|
|
|
|
|
|
|
|
# Jellyfin: don't build via `libsForQt5.callPackage`
|
|
|
|
# ./2023-06-06-jellyfin-no-libsForQt5-callPackage.patch
|
2022-06-23 23:03:58 +00:00
|
|
|
]
|