nix-files/pkgs/additional/nixpkgs-wayland/default.nix

28 lines
819 B
Nix
Raw Normal View History

{ pkgs
, fetchFromGitHub
, lib
}:
let
src = fetchFromGitHub {
owner = "nix-community";
repo = "nixpkgs-wayland";
rev = "8e2d180329f4009ac06042b50ca0a356722aea19";
hash = "sha256-8rKI+MKmWOpEy7XKRMURph4b6VkMkh+Nr20hkpyk5hM=";
};
flake = import "${src}/flake.nix";
evaluated = flake.outputs {
self = evaluated;
lib-aggregate.lib = lib // {
# mock out flake-utils, which it uses to construct flavored package sets.
# we only need the overlay (unflavored)
flake-utils.eachSystem = sys: fn: {};
};
};
overlay = evaluated.overlay;
final = pkgs.appendOverlays [ overlay ];
in src.overrideAttrs (base: {
# passthru only nixpkgs-wayland's own packages -- not the whole nixpkgs-with-nixpkgs-wayland-as-overlay:
passthru = base.passthru // (overlay final pkgs);
})