51 lines
1.9 KiB
Nix
51 lines
1.9 KiB
Nix
{
|
|
inputs,
|
|
nixpkgs,
|
|
pkgs-stable,
|
|
...
|
|
}: let
|
|
# Taken from https://github.com/Misterio77/nix-config/blob/main/overlay/default.nix
|
|
# By specifying this we can just add our derivation to derivations/default.nix and it will land here
|
|
additions = final: prev:
|
|
import ../derivations {
|
|
inherit inputs;
|
|
pkgs = final;
|
|
};
|
|
|
|
modifications = final: prev: {
|
|
# Only kept as an example, has nothing to do with current dconf-editor-wrapped derivation
|
|
# dconf-editor-wrapped = import ./dconf-editor.nix { inherit final prev; };
|
|
# Use dconf-editor.nix: { final, prev }: final.<package>.overrideAttrs (oldAttrs: { ... }) or sth similar
|
|
|
|
# Overriding specific packages from a different nixpkgs (e.g. a pull request)
|
|
# can be done like this. Note that this creates an additional nixpkgs instance.
|
|
# https://github.com/NixOS/nixpkgs/issues/418451
|
|
# unityhub_3_13 =
|
|
# (import inputs.unityhub-pinned {
|
|
# config.allowUnfree = true;
|
|
# localSystem = {inherit (prev) system;};
|
|
# }).unityhub;
|
|
|
|
# TODO: Remove this after 0.15.1 hits nixpkgs
|
|
neovide = prev.neovide.overrideAttrs (finalAttrs: prevAttrs: {
|
|
version = "0.15.1";
|
|
src = prev.fetchFromGitHub {
|
|
owner = "neovide";
|
|
repo = "neovide";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-2iV3g6tcCkMF7sFG/GZDz3czPZNIDi6YLfrVzYO9jYI=";
|
|
};
|
|
cargoHash = "sha256-YlHAcUCRk6ROg5yXIumHfsiR/2TrsSzbuXz/IQK7sEo=";
|
|
cargoDeps = prev.rustPlatform.fetchCargoVendor {
|
|
inherit (finalAttrs) pname src version;
|
|
hash = finalAttrs.cargoHash;
|
|
};
|
|
});
|
|
|
|
# TODO: Remove this after jetbrains.jdk builds again (nixpkgs issue 425328)
|
|
jetbrains.rider = pkgs-stable.jetbrains.rider;
|
|
};
|
|
in
|
|
# Composes a list of overlays and returns a single overlay function that combines them.
|
|
nixpkgs.lib.composeManyExtensions [additions modifications]
|