this allows to implictly pass `prismlauncher-unwrapped` it won't have an effect on our package set as directly inheriting from the scope we create filters out the extra attributes usually introduced with a scope Signed-off-by: seth <getchoo@tuta.io>
32 lines
729 B
Nix
32 lines
729 B
Nix
{ inputs, self, ... }:
|
|
{
|
|
perSystem =
|
|
{ lib, pkgs, ... }:
|
|
{
|
|
packages =
|
|
let
|
|
ourPackages = lib.makeScope pkgs.newScope (final: self.overlays.default final pkgs);
|
|
in
|
|
{
|
|
inherit (ourPackages) prismlauncher-unwrapped prismlauncher;
|
|
default = ourPackages.prismlauncher;
|
|
};
|
|
};
|
|
|
|
flake = {
|
|
overlays.default =
|
|
final: prev:
|
|
let
|
|
version = builtins.substring 0 8 self.lastModifiedDate or "dirty";
|
|
in
|
|
{
|
|
prismlauncher-unwrapped = prev.callPackage ./pkg {
|
|
inherit (inputs) libnbtplusplus;
|
|
inherit version;
|
|
};
|
|
|
|
prismlauncher = final.callPackage ./pkg/wrapper.nix { };
|
|
};
|
|
};
|
|
}
|