nixpkgs-wayland: add an update script

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

View File

@@ -1,6 +1,7 @@
{ pkgs { pkgs
, fetchFromGitHub , fetchFromGitHub
, lib , lib
, nix-update-script
}: }:
let let
src = fetchFromGitHub { src = fetchFromGitHub {
@@ -22,6 +23,15 @@ let
final = pkgs.appendOverlays [ overlay ]; final = pkgs.appendOverlays [ overlay ];
in src.overrideAttrs (base: { 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 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" ];
};
};
}) })