nixpkgs-wayland: add an update script
This commit is contained in:
@@ -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" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user