Loading pkgs/by-name/lx/lxqt-panel-profiles/package.nix 0 → 100644 +55 −0 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitea, python3Packages, qt6, bash, }: let pythonWithPyqt6 = python3Packages.python.withPackages (ps: [ ps.pyqt6 ]); in stdenv.mkDerivation rec { pname = "lxqt-panel-profiles"; version = "1.1"; src = fetchFromGitea { domain = "codeberg.org"; owner = "MrReplikant"; repo = "lxqt-panel-profiles"; rev = version; hash = "sha256-YGjgTLodVTtDzP/SOEg+Ehf1LYggTnG1H1rN5m1jaNM="; }; postPatch = '' # after copying the layouts folder from the nix store # add write permissions to the folder, so saving profiles works substituteInPlace usr/bin/lxqt-panel-profiles \ --replace-fail 'cp -r /usr/share/lxqt-panel-profiles/layouts $XDG_DATA_HOME/lxqt-panel-profiles' 'cp -r /usr/share/lxqt-panel-profiles/layouts $XDG_DATA_HOME/lxqt-panel-profiles; chmod -R u+w,g+w $XDG_DATA_HOME/lxqt-panel-profiles;' substituteInPlace usr/bin/lxqt-panel-profiles \ --replace-fail "/bin/bash" "${bash}/bin/bash" \ --replace-fail "/usr/share/" "$out/usr/share/" \ --replace-fail "python3" "${pythonWithPyqt6}/bin/python" substituteInPlace usr/share/lxqt-panel-profiles/lxqt-panel-profiles.py \ --replace-fail "qdbus" "${qt6.qttools}/bin/qdbus" ''; installPhase = '' mkdir $out mv usr $out/usr ''; meta = { description = ""; homepage = "https://codeberg.org/MrReplikant/lxqt-panel-profiles/"; changelog = "https://codeberg.org/MrReplikant/lxqt-panel-profiles/releases/tag/${version}"; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ linuxissuper ]; mainProgram = "lxqt-panel-profiles"; platforms = lib.platforms.linux; }; } Loading
pkgs/by-name/lx/lxqt-panel-profiles/package.nix 0 → 100644 +55 −0 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitea, python3Packages, qt6, bash, }: let pythonWithPyqt6 = python3Packages.python.withPackages (ps: [ ps.pyqt6 ]); in stdenv.mkDerivation rec { pname = "lxqt-panel-profiles"; version = "1.1"; src = fetchFromGitea { domain = "codeberg.org"; owner = "MrReplikant"; repo = "lxqt-panel-profiles"; rev = version; hash = "sha256-YGjgTLodVTtDzP/SOEg+Ehf1LYggTnG1H1rN5m1jaNM="; }; postPatch = '' # after copying the layouts folder from the nix store # add write permissions to the folder, so saving profiles works substituteInPlace usr/bin/lxqt-panel-profiles \ --replace-fail 'cp -r /usr/share/lxqt-panel-profiles/layouts $XDG_DATA_HOME/lxqt-panel-profiles' 'cp -r /usr/share/lxqt-panel-profiles/layouts $XDG_DATA_HOME/lxqt-panel-profiles; chmod -R u+w,g+w $XDG_DATA_HOME/lxqt-panel-profiles;' substituteInPlace usr/bin/lxqt-panel-profiles \ --replace-fail "/bin/bash" "${bash}/bin/bash" \ --replace-fail "/usr/share/" "$out/usr/share/" \ --replace-fail "python3" "${pythonWithPyqt6}/bin/python" substituteInPlace usr/share/lxqt-panel-profiles/lxqt-panel-profiles.py \ --replace-fail "qdbus" "${qt6.qttools}/bin/qdbus" ''; installPhase = '' mkdir $out mv usr $out/usr ''; meta = { description = ""; homepage = "https://codeberg.org/MrReplikant/lxqt-panel-profiles/"; changelog = "https://codeberg.org/MrReplikant/lxqt-panel-profiles/releases/tag/${version}"; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ linuxissuper ]; mainProgram = "lxqt-panel-profiles"; platforms = lib.platforms.linux; }; }