Add htop overlay

This commit is contained in:
Tobias Happ 2020-01-13 21:49:25 +01:00
parent 1f6e469bd3
commit 93d081c3bc
4 changed files with 42 additions and 0 deletions

View file

@ -166,5 +166,7 @@ in
_module.args.pkgs = _pkgs; _module.args.pkgs = _pkgs;
nixpkgs.overlays = import ../overlays;
}; };
} }

5
overlays/default.nix Normal file
View file

@ -0,0 +1,5 @@
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE.
[
(import ./htop.nix)
]

18
overlays/htop.nix Normal file
View file

@ -0,0 +1,18 @@
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE.
self: super:
let
nixpkgs = import ./lib/nixpkgs.nix { inherit super; };
in
{
htop = nixpkgs.htop.overrideAttrs (old: {
patches = [
(super.fetchpatch {
url = "https://raw.githubusercontent.com/termux/termux-packages/master/packages/htop/fix-missing-macros.patch";
sha256 = "1cljkjagp66xxcjb6y1m9k4v994slfkd0s6fijh02l3rp8ycvjnv";
})
];
});
}

17
overlays/lib/nixpkgs.nix Normal file
View file

@ -0,0 +1,17 @@
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE.
{ super }:
let
pinnedPkgsSrc = super.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "7e8454fb856573967a70f61116e15f879f2e3f6a";
sha256 = "0lnbjjvj0ivpi9pxar0fyk8ggybxv70c5s0hpsqf5d71lzdpxpj8";
};
in
import pinnedPkgsSrc {
inherit (super) config;
overlays = [ ];
}