2023-08-28 09:26:30 +00:00
|
|
|
{ callPackage
|
2023-07-09 07:48:10 +00:00
|
|
|
, fetchpatch
|
2023-05-16 07:08:04 +00:00
|
|
|
}:
|
2023-06-23 02:12:23 +00:00
|
|
|
let
|
2023-08-28 09:26:30 +00:00
|
|
|
patches = {
|
|
|
|
merged = [
|
|
|
|
(fetchpatch {
|
|
|
|
# merged post 1.14.2
|
|
|
|
# [1/2] sxmo_init: behave well when user's primary group differs from their name
|
|
|
|
# [2/2] sxmo_init: ensure XDG_STATE_HOME exists
|
|
|
|
url = "https://lists.sr.ht/~mil/sxmo-devel/patches/42309/mbox";
|
|
|
|
hash = "sha256-GVWJWTccZeaKsVtsUyZFYl9/qEwJ5U7Bu+DiTDXLjys=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
# merged post 1.14.2
|
|
|
|
# sxmo_hook_block_suspend: don't assume there's only one MPRIS player
|
|
|
|
url = "https://lists.sr.ht/~mil/sxmo-devel/patches/42441/mbox";
|
|
|
|
hash = "sha256-YmkJ4JLIG/mHosRlVQqvWzujFMBsuDf5nVT3iOi40zU=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
# merged post 1.14.2
|
|
|
|
# i only care about patch no. 2
|
|
|
|
# [1/2] suspend toggle: silence rm failure noise
|
|
|
|
# [2/2] config: fix keyboard files location
|
|
|
|
name = "multipatch: 42880";
|
|
|
|
url = "https://lists.sr.ht/~mil/sxmo-devel/patches/42880/mbox";
|
|
|
|
hash = "sha256-tAMPBb6vwzj1dFMTEaqrcCJU6FbQirwZgB0+tqW3rQA=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
# merged post 1.14.2
|
|
|
|
name = "Switch from light to brightnessctl";
|
|
|
|
url = "https://git.sr.ht/~mil/sxmo-utils/commit/d0384a7caed036d25228fa3279c36c0230795e4a.patch";
|
|
|
|
hash = "sha256-/UlcuEI5cJnsqRuZ1zWWzR4dyJw/zYeB1rtJWFeSGEE=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
# merged post 1.14.2
|
|
|
|
name = "sxmo_hook_lock: allow configuration of auto-screenoff timeout v1";
|
|
|
|
url = "https://lists.sr.ht/~mil/sxmo-devel/patches/42443/mbox";
|
|
|
|
hash = "sha256-c4VySbVJgsbh2h+CnCgwWWe5WkAregpYFqL8n3WRXwY=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
# merged post 1.14.2
|
|
|
|
name = "sxmo_wmmenu: respect SXMO_WORKSPACE_WRAPPING";
|
|
|
|
url = "https://lists.sr.ht/~mil/sxmo-devel/patches/42698/mbox";
|
|
|
|
hash = "sha256-TrTlrthrpYdIMC8/RCMNaB8PcGQgtya/h2/uLNQDeWs=";
|
|
|
|
})
|
2023-08-29 10:09:30 +00:00
|
|
|
(fetchpatch {
|
|
|
|
# merged ~2023/08/22
|
|
|
|
name = "Make config gesture toggle persistent";
|
|
|
|
url = "https://lists.sr.ht/~mil/sxmo-devel/patches/42876/mbox";
|
|
|
|
hash = "sha256-Oa0MI0Kt9Xgl5L1KarHI6Yn4+vpRxUSujB1iY4hlK9c=";
|
|
|
|
})
|
2023-08-30 01:49:48 +00:00
|
|
|
(fetchpatch {
|
|
|
|
# merged ~2023/08/29
|
|
|
|
# [1/2] Makefile: obey PREFIX when installing udev rules
|
|
|
|
# [2/2] Makefile: use SYSCONFDIR instead of hardcoding /etc
|
|
|
|
name = "44110-multipatch-makefile-nixos";
|
|
|
|
url = "https://lists.sr.ht/~mil/sxmo-devel/patches/44110/mbox";
|
|
|
|
hash = "sha256-jXtwgOVGSjwWj7a36F6P+e63lKvk4OmFIzxTkf9yZMs=";
|
|
|
|
})
|
2023-08-28 09:26:30 +00:00
|
|
|
];
|
|
|
|
unmerged = [
|
|
|
|
# (fetchpatch {
|
|
|
|
# XXX: doesn't apply cleanly to 1.14.2 release
|
|
|
|
# # Don't wait for led or status bar in state change hooks
|
|
|
|
# # - significantly decreases the time between power-button state transitions
|
|
|
|
# url = "https://lists.sr.ht/~mil/sxmo-devel/patches/43109/mbox";
|
|
|
|
# hash = "sha256-4uR2u6pa62y6SaRHYRn15YGDPILAs7py0mPbAjsgwM4=";
|
|
|
|
# })
|
2023-08-28 09:55:34 +00:00
|
|
|
|
2023-08-28 10:32:37 +00:00
|
|
|
(fetchpatch {
|
|
|
|
name = "sxmo_migrate: add option to disable configversion checks";
|
2023-08-30 01:49:48 +00:00
|
|
|
url = "https://lists.sr.ht/~mil/sxmo-devel/patches/44155/mbox";
|
|
|
|
hash = "sha256-ZcUD2UWPM8PxGM9TBnGe8JCJgMC72OZYzctDf2o7Ub0=";
|
2023-08-28 10:32:37 +00:00
|
|
|
})
|
2023-08-28 09:55:34 +00:00
|
|
|
|
|
|
|
## these might or might not be upstream-worthy
|
2023-08-28 09:26:30 +00:00
|
|
|
./0104-full-auto-rotate.patch
|
|
|
|
# ./0106-no-restart-lisgd.patch
|
2023-08-28 09:55:34 +00:00
|
|
|
|
|
|
|
## not upstreamable
|
|
|
|
# let NixOS manage the audio daemons (pulseaudio/pipewire)
|
|
|
|
./0005-system-audio.patch
|
2023-08-28 09:26:30 +00:00
|
|
|
];
|
2023-08-30 01:49:48 +00:00
|
|
|
# these don't apply cleanly to the stable release; only to latest
|
|
|
|
unmerged-tip-only = [
|
|
|
|
# TODO: send these upstream
|
|
|
|
(fetchpatch {
|
|
|
|
name = "sxmo_hook_apps: add a few";
|
2023-09-12 10:06:01 +00:00
|
|
|
url = "https://git.uninsane.org/colin/sxmo-utils/commit/dd17fd707871961906ed4577b8c89f6128c5f121.patch";
|
|
|
|
hash = "sha256-Giek1MbyOtlPccmT8XQkLZWhX+EeJdzWVZtNgcLuTsI=";
|
2023-08-30 01:49:48 +00:00
|
|
|
})
|
|
|
|
];
|
2023-05-16 07:08:04 +00:00
|
|
|
};
|
2023-08-28 09:26:30 +00:00
|
|
|
in {
|
|
|
|
stable = callPackage ./common.nix {
|
|
|
|
version = "1.14.2";
|
|
|
|
hash = "sha256-1bGCUhf/bt9I8BjG/G7sjYBzLh28iZSC20ml647a3J4=";
|
|
|
|
patches = patches.merged ++ patches.unmerged;
|
2023-05-16 11:09:57 +00:00
|
|
|
};
|
2023-08-28 09:26:30 +00:00
|
|
|
latest = callPackage ./common.nix {
|
2023-09-23 10:11:49 +00:00
|
|
|
version = "unstable-2023-09-22";
|
|
|
|
rev = "7a7188bddcc8ac45eeea7748bc342b390b48f0f5";
|
|
|
|
hash = "sha256-E4L9pH7wivz51XScUERpYwk6b0gUsu+s0fPpKmje+8Y=";
|
2023-08-30 01:49:48 +00:00
|
|
|
patches = patches.unmerged ++ patches.unmerged-tip-only;
|
2023-05-16 07:08:04 +00:00
|
|
|
};
|
|
|
|
}
|