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

38 lines
1.0 KiB
Nix
Raw Normal View History

{ pkgs
, fetchFromGitHub
, lib
2024-06-08 20:24:56 +00:00
, nix-update-script
}:
let
src = fetchFromGitHub {
owner = "nix-community";
repo = "nixpkgs-wayland";
rev = "90cadf89f6edd41c7b9f9436cdc8a4c3206747e6";
hash = "sha256-b6LF6PGzBHJZzhOeZbt4AX2E1wMbhHGurskwABFbiJg=";
};
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.extend overlay;
in src.overrideAttrs (base: {
2024-06-08 20:24:56 +00:00
# attributes required by update scripts
pname = "nixpkgs-wayland";
version = "0-unstable-2024-06-12";
2024-06-08 20:24:56 +00:00
src = src;
# passthru only nixpkgs-wayland's own packages -- not the whole nixpkgs-with-nixpkgs-wayland-as-overlay:
2024-06-08 20:24:56 +00:00
passthru = base.passthru // (overlay final pkgs) // {
updateScript = nix-update-script {
extraArgs = [ "--version" "branch" ];
};
};
})