initial commit
This commit is contained in:
commit
c094b5770c
113 changed files with 6879 additions and 0 deletions
45
overlays/default.nix
Normal file
45
overlays/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
# synix packages accessible through 'pkgs.synix'
|
||||
synix-packages = final: prev: { synix = inputs.synix.overlays.additions final prev; };
|
||||
|
||||
# packages in `pkgs/` accessible through 'pkgs.local'
|
||||
local-packages = final: prev: { local = import ../pkgs { pkgs = final; }; };
|
||||
|
||||
# https://nixos.wiki/wiki/Overlays
|
||||
modifications =
|
||||
final: prev:
|
||||
let
|
||||
files = [
|
||||
# ./instaloader.nix
|
||||
# ./zathura.nix # FIXME: How to use overrideScope?
|
||||
];
|
||||
imports = builtins.map (f: import f final prev) files;
|
||||
in
|
||||
builtins.foldl' (a: b: a // b) { } imports // inputs.synix.overlays.modifications final prev;
|
||||
|
||||
# unstable nixpkgs accessible through 'pkgs.unstable'
|
||||
unstable-packages = final: prev: {
|
||||
unstable = import inputs.nixpkgs-unstable {
|
||||
inherit (final) system;
|
||||
inherit (prev) config;
|
||||
};
|
||||
};
|
||||
|
||||
# old-stable nixpkgs accessible through 'pkgs.old-stable'
|
||||
old-stable-packages = final: prev: {
|
||||
old-stable = import inputs.nixpkgs-old-stable {
|
||||
inherit (final) system;
|
||||
inherit (prev) config;
|
||||
};
|
||||
};
|
||||
|
||||
# old-old-stable nixpkgs accessible through 'pkgs.old-old-stable'
|
||||
old-old-stable-packages = final: prev: {
|
||||
old-old-stable = import inputs.nixpkgs-old-old-stable {
|
||||
inherit (final) system;
|
||||
inherit (prev) config;
|
||||
};
|
||||
};
|
||||
}
|
||||
12
overlays/instaloader.nix
Normal file
12
overlays/instaloader.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
final: prev:
|
||||
|
||||
{
|
||||
instaloader = prev.instaloader.overrideAttrs (oldAttrs: {
|
||||
src = prev.pkgs.fetchFromGitHub {
|
||||
owner = "instaloader";
|
||||
repo = "instaloader";
|
||||
rev = "pull/2533/head";
|
||||
sha256 = "sha256-LMRU49pyAWDdflPbA4cZ9pIdjGNThLWfZWZsQkcvTs4=";
|
||||
};
|
||||
});
|
||||
}
|
||||
19
overlays/zathura.nix
Normal file
19
overlays/zathura.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# `zathura_core` is not a toplevel package, threfore `prev.zathura_core` is not available
|
||||
# Maybe `overrideScope` is needed: overrideScope = (scope -> scope -> AttrSet) -> scope
|
||||
# But I don't know how to use it.
|
||||
# zathura package definition: https://github.com/NixOS/nixpkgs/blob/nixos-24.11/pkgs/applications/misc/zathura/default.nix
|
||||
|
||||
final: prev: {
|
||||
# error: attribute 'overrideScope' missing
|
||||
zathura = prev.zathura.overrideScope {
|
||||
zathura_core = prev.zathura_core.overrideAttrs (oldAttrs: rec {
|
||||
version = "0.5.4"; # latest version before https://github.com/pwmt/zathura/issues/447
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "pwmt";
|
||||
repo = "zathura";
|
||||
rev = version;
|
||||
hash = "";
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue