feat: use overlays for swayosd
This commit is contained in:
parent
e12135c3e8
commit
0e125b262f
5 changed files with 54 additions and 63 deletions
nixos/overlays
7
nixos/overlays/list.nix
Normal file
7
nixos/overlays/list.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(import ./swayosd.nix)
|
||||
];
|
||||
}
|
18
nixos/overlays/swayosd.nix
Normal file
18
nixos/overlays/swayosd.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
final: prev: {
|
||||
swayosd = prev.swayosd.overrideAttrs (oldAttrs: rec {
|
||||
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "ErikReider";
|
||||
repo = "SwayOSD";
|
||||
rev = "c573f5ce94e2017d37b3dd3c2c1363bb1c6f82a3";
|
||||
hash = "sha256-cPom4dU+64TdCIi9D+GZN+EJltgXWy8fezEL1r9kUDo=";
|
||||
};
|
||||
|
||||
cargoDeps = oldAttrs.cargoDeps.overrideAttrs (prev.lib.const {
|
||||
name = "swayosd-vendor.tar.gz";
|
||||
inherit src;
|
||||
outputHash = "sha256-rSz7edA/G446eJGy5qYx9xOpMhsTpA9H43b45bLArHU=";
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue