Giter Site home page Giter Site logo

Comments (15)

librephoenix avatar librephoenix commented on June 12, 2024 2

Seems like you're using NixOS! Me too :)

I just ran into this after an update as well, since the pyprland packaged in Nix is on v2.2.11 and this seems to be fixed in v2.2.12

You should be able to use this (as a temporary fix) wherever you're declaring packages in your config:

environment.systemPackages = with pkgs; [
    (pyprland.overrideAttrs (oldAttrs: {
      src = fetchFromGitHub {
        owner = "hyprland-community";
        repo = "pyprland";
        rev = "refs/tags/2.2.12";
        hash = "sha256-SVly20/+67d0Rr2SuM1n/JfT1SlyKdKRBLDx2okCZRY=";
      };
    }))
];

or if using home-manager:

home.packages = with pkgs; [
    (pyprland.overrideAttrs (oldAttrs: {
      src = fetchFromGitHub {
        owner = "hyprland-community";
        repo = "pyprland";
        rev = "refs/tags/2.2.12";
        hash = "sha256-SVly20/+67d0Rr2SuM1n/JfT1SlyKdKRBLDx2okCZRY=";
      };
    }))
];

For me this setup throws a warning when starting but then continues to work properly :)

from pyprland.

dwilliam62 avatar dwilliam62 commented on June 12, 2024 1

Seems like you're using NixOS! Me too :)

Hello yes! for about 6-8 months. My setup is based on ZaneyOS https://gitlab.com/Zaney/zaneyos
But I have forked and modified it. I've been a long time fan of pyprland so I added it to mine. This is 1st issue I've ever had with it.

I will try your fix!
Thanks for the quick reply!

This is my pyprland.nix pretty simple I got the config from someone else and just wrapped it here

{ config, pkgs, ... }:

{
home.packages = with pkgs; [ pyprland ];

xdg.configFile."hypr/pyprland.toml".text = ''
[pyprland]
plugins = [
"toggle_special",
"scratchpads",
"lost_windows",
"monitors",
"shift_monitors",
"toggle_dpms",
"magnify",
"expose",
"workspaces_follow_focus",
]

[workspaces_follow_focus]
max_workspaces = 9

[expose]
include_special = false

[scratchpads.term]
animation = "fromTop"
command = "kitty --class kitty-dropterm"
class = "kitty-dropterm"
size = "75% 60%"
max_size = "1920px 100%"

[scratchpads.volume]
animation = "fromRight"
command = "pavucontrol"
class = "pavucontrol"
lazy = true
size = "40% 90%"
max_size = "1080px 100%"
unfocus = "hide"

[layout_center]
margin = 60
offset = [0, 30]
next = "movefocus r"
prev = "movefocus l"
next2 = "movefocus d"
prev2 = "movefocus u"

'';
}

from pyprland.

dwilliam62 avatar dwilliam62 commented on June 12, 2024 1

I don't know anything about nix, but can't the provided flake.nix be useful?

That is the flake provided

Before it was just

{ config, pkgs, ... }:

{
home.packages = with pkgs; [ pyprland ];

I will try to figure it out

Thanks

from pyprland.

dwilliam62 avatar dwilliam62 commented on June 12, 2024 1

thanks all It should be a few days or so before the update is there it appears

image

I am ok to close this issue

from pyprland.

dwilliam62 avatar dwilliam62 commented on June 12, 2024

hyprctl systeminfo
Hyprland, built from branch at commit f94264928a8ab4da8759d4ded25a46af44451d38 ().
Date: 2024-04-26
Tag: , commits: @COMMITS@

flags: (if any)

System Information:
System name: Linux
Node name: ddubsos-dev
Release: 6.8.7
Version: #1-NixOS SMP PREEMPT_DYNAMIC Wed Apr 17 09:23:43 UTC 2024

GPU information:

os-release: ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.05.20240425.7bb2ccd"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.05 (Uakari)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.05 (Uakari)"
VERSION_CODENAME=uakari
VERSION_ID="24.05"

plugins:
hyprtrails by Vaxry ver 1.0
hyprexpo by Vaxry ver 1.0

from pyprland.

fdev31 avatar fdev31 commented on June 12, 2024

this is a duplicate of #88 btw :)
Thank you for the support @librephoenix

from pyprland.

fdev31 avatar fdev31 commented on June 12, 2024

Would it be possible to get a build using the tag or is it something related to nix?
I don't see anything special in the Arch package and I get such output:

❯ hyprctl -j version
{
    "branch": "",
    "commit": "fe7b748eb668136dd0558b7c8279bfcd7ab4d759",
    "dirty": false,
    "commit_message": "props: bump version to 0.39.1",
    "commit_date": "Tue Apr 16 16:01:03 2024",
    "tag": "v0.39.1",
    "commits": 4460,
    "flags": []
}

Poking @NotAShelf for information

from pyprland.

dwilliam62 avatar dwilliam62 commented on June 12, 2024

I am doing something wrong. Still new to NIX

image

it doesn't build the new version

from pyprland.

fdev31 avatar fdev31 commented on June 12, 2024

I don't know anything about nix, but can't the provided flake.nix be useful?

from pyprland.

fdev31 avatar fdev31 commented on June 12, 2024

I don't think you are alone in that case, if someone can provide decent instructions to easily get the latest pyprland (or a specific tag) on Nix I'll add it to the wiki.

from pyprland.

fdev31 avatar fdev31 commented on June 12, 2024

In case it helps some people: the "version" tag in hyprctl -j version is required from 2.2.9 to 2.2.11 (included). Later versions assume you are using a bleeding edge version in such case, which is a packaging issue.

from pyprland.

NotAShelf avatar NotAShelf commented on June 12, 2024

fetchFromGitHub will fetch a source based tarball (i.e. contents of this repository on the topmost level) and won't actually expose a package. To use the pyprland package exposed by this flake, you must add it as a flake input and consume the exposed package directly with inputs.pyprland.packages.${pkgs.stdenv.system}.pyprland.

from pyprland.

NotAShelf avatar NotAShelf commented on June 12, 2024

I can probably work on upstreaming pyprland to nixpkgs, the packaging is somewhat complete and poetry2nix is available in nixpkgs also. Should be trivial to implement an update script to reduce maintenance on my end as I don't use pyprland, and may not always keep myself up to date.

from pyprland.

librephoenix avatar librephoenix commented on June 12, 2024

Pyprland is in nixpkgs already: https://github.com/NixOS/nixpkgs/blob/master/pkgs/by-name/py/pyprland/package.nix, though they aren't using pyprland's flake to build it. In the original issue it looks like the nixpkgs package is being used.

Nixpkgs master branch is already using pyprland 2.2.12, but nixos-unstable is still stuck on 2.2.10: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/py/pyprland/package.nix

Once unstable updates to 2.2.12 (maybe in a week or so, give or take?), I think this issue will resolve itself.

In any case, the temporary fix I mentioned was to just override the pyprland in nixpkgs with the up-to-date version.

Any issues with installing pyprland directly from pyprland's flake might be something separate?

from pyprland.

fdev31 avatar fdev31 commented on June 12, 2024

NixPkg PR + #92 will fix this issue, closing, thank you all!

from pyprland.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.