overlays: remove gap from gimp-with-plugins
This commit is contained in:
parent
fdbf07c3ea
commit
a457e3fdf3
@ -1,22 +1,19 @@
|
|||||||
nixfiles: final: prev:
|
nixfiles: final: prev:
|
||||||
let
|
let
|
||||||
inherit (prev) callPackage fetchFromGitHub;
|
inherit (prev) lib callPackage fetchFromGitHub;
|
||||||
inherit (prev.lib) recurseIntoAttrs optionalAttrs;
|
inherit (prev.lib) recurseIntoAttrs optionalAttrs;
|
||||||
isNewer = ref: ver: (builtins.compareVersions ver ref) == 1;
|
isNewer = ref: ver: (builtins.compareVersions ver ref) == 1;
|
||||||
|
|
||||||
# if you can't do version based just make it time based and deal with it in a
|
gimp-with-plugins-good = let
|
||||||
# month if it's not fixed
|
badPlugins = [ "gap" ];
|
||||||
# 2024-04-10T08:11:11
|
itemInList = list: item: lib.any (x: x==item) list;
|
||||||
gap-hold = (nixfiles.inputs.nixpkgs-unstable.lastModified <= 1712751071);
|
pluginFilter = name: value: (value.type or null == "derivation") && (!(itemInList badPlugins name)) && (!value.meta.broken);
|
||||||
gimpPlugins-gap = let
|
filteredPlugins = lib.filterAttrs pluginFilter prev.gimpPlugins;
|
||||||
src = fetchFromGitHub {
|
plugins = lib.mapAttrsToList (_: v: v) filteredPlugins;
|
||||||
owner = "Scrumplex";
|
in prev.gimp-with-plugins.override { inherit plugins; };
|
||||||
repo = "nixpkgs";
|
in {
|
||||||
rev = "cca25fd345f2c48de66ff0a950f4ec3f63e0420f";
|
gimp-with-plugins = gimp-with-plugins-good;
|
||||||
hash="sha256-oat4TwOorFevUMZdBFgaQHx/UKqGW7CGMoOHVgQxVdM=";
|
}
|
||||||
};
|
|
||||||
in recurseIntoAttrs (callPackage "${src}/pkgs/applications/graphics/gimp/plugins" {});
|
|
||||||
in (optionalAttrs gap-hold { gimpPlugins = gimpPlugins-gap; })
|
|
||||||
# # can't optionalAttrs for version checks because it breaks lazy eval and causes infinite recursion
|
# # can't optionalAttrs for version checks because it breaks lazy eval and causes infinite recursion
|
||||||
# // {
|
# // {
|
||||||
# obsidian = let
|
# obsidian = let
|
||||||
|
Loading…
x
Reference in New Issue
Block a user