update flake.nix to new url format from hyprland

This commit is contained in:
wiillou 2024-05-05 16:54:04 +01:00
parent 6e89e3f64c
commit 6c83218bc2

View File

@ -2,13 +2,13 @@
description = "A plugin for the Hyprland compositor, implementing virtual-desktop functionality.";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.hyprland.url = "github:hyprwm/Hyprland/v0.40.0";
inputs.hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&ref=refs/tags/v0.40.0";
outputs = { self, nixpkgs, hyprland }:
let
# Helper function to create packages for each system
withPkgsFor = fn: nixpkgs.lib.genAttrs (builtins.attrNames hyprland.packages) (system: fn system nixpkgs.legacyPackages.${system});
virtualDesktops = withPkgsFor (system: pkgs: pkgs.gcc13Stdenv.mkDerivation rec {
virtualDesktops = withPkgsFor (system: pkgs: pkgs.gcc13Stdenv.mkDerivation {
pname = "virtual-desktops";
version = "2.2.2";
src = ./.;