System/packages/pyprland/default.nix

16 lines
395 B
Nix
Raw Permalink Normal View History

2023-06-17 16:29:55 -04:00
{ config, lib, pkgs, poetry2nix, ... }:
let
vals = builtins.fromJSON (builtins.readFile ../../sources/pyprland.json);
rev = vals.rev;
hash = vals.hash;
src = pkgs.fetchFromGitHub {
owner = "hyprland-community";
repo = "pyprland";
inherit rev hash;
};
in poetry2nix.mkPoetryApplication {
inherit src;
poetrylock = ./poetry.lock;
pyproject = "${src}/pyproject.toml";
}