nixpkgs-wayland: add an update script

This commit is contained in:
Colin 2024-06-08 20:24:56 +00:00
parent b00fb22137
commit 6e8cb1bbb2

View File

@ -1,6 +1,7 @@
{ pkgs
, fetchFromGitHub
, lib
, nix-update-script
}:
let
src = fetchFromGitHub {
@ -22,6 +23,15 @@ let
final = pkgs.appendOverlays [ overlay ];
in src.overrideAttrs (base: {
# attributes required by update scripts
pname = "nixpkgs-wayland";
version = "0-unstable-2024-06-xx";
src = src;
# passthru only nixpkgs-wayland's own packages -- not the whole nixpkgs-with-nixpkgs-wayland-as-overlay:
passthru = base.passthru // (overlay final pkgs);
passthru = base.passthru // (overlay final pkgs) // {
updateScript = nix-update-script {
extraArgs = [ "--version" "branch" ];
};
};
})