mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
Add htop overlay
This commit is contained in:
parent
1f6e469bd3
commit
93d081c3bc
4 changed files with 42 additions and 0 deletions
|
|
@ -166,5 +166,7 @@ in
|
|||
|
||||
_module.args.pkgs = _pkgs;
|
||||
|
||||
nixpkgs.overlays = import ../overlays;
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
5
overlays/default.nix
Normal file
5
overlays/default.nix
Normal 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
18
overlays/htop.nix
Normal 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
17
overlays/lib/nixpkgs.nix
Normal 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 = [ ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue