Skip to content

Commit

Permalink
flake: use Hyprland flake and pin it to version 0.41.2
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 24, 2024
1 parent 77c5b99 commit d32c16f
Show file tree
Hide file tree
Showing 2 changed files with 223 additions and 7 deletions.
217 changes: 213 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
description = "Hyprland's IPC bindings for Go";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.follows = "hyprland/nixpkgs";
hyprland.url = "github:hyprwm/Hyprland/v0.41.2";
};

outputs =
{ nixpkgs, ... }:
{ nixpkgs, hyprland, ... }:
let
supportedSystems = [
"x86_64-linux"
Expand All @@ -17,7 +18,13 @@
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;

# Nixpkgs instantiated for supported system types.
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
nixpkgsFor = forAllSystems (
system:
import nixpkgs {
inherit system;
overlays = [ hyprland.overlays.default ];
}
);
in
{
checks = forAllSystems (
Expand Down

0 comments on commit d32c16f

Please sign in to comment.