Skip to content

Commit

Permalink
easylpac: fix it
Browse files Browse the repository at this point in the history
`easylpac` need `lpac` being placed into same directory.

`easylpac` need `wrapGAppsHook` to find compiled gsettings schemas.
  • Loading branch information
wrvsrx authored and linyinfeng committed Nov 15, 2024
1 parent 27e8089 commit df751a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
12 changes: 4 additions & 8 deletions pkgs/easylpac/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
xorg,
libglvnd,
glfw,
makeWrapper,
wrapGAppsHook,
lpac,
lib,
}:

let
workDir = callPackage ./work-dir.nix { };
in
buildGoModule rec {
pname = "easylpac";
version = "0.7.6.5";
Expand All @@ -33,7 +31,7 @@ buildGoModule rec {

nativeBuildInputs = [
pkg-config
makeWrapper
wrapGAppsHook
];
buildInputs = [
gtk3
Expand All @@ -42,12 +40,10 @@ buildGoModule rec {
] ++ glfw.buildInputs;

postInstall = ''
wrapProgram "$out/bin/EasyLPAC" --chdir "${workDir}"
ln -s "${lpac}/bin/lpac" "$out/bin/lpac"
'';

passthru = {
inherit workDir;

updateScriptEnabled = true;
updateScript =
let
Expand Down
5 changes: 0 additions & 5 deletions pkgs/easylpac/work-dir.nix

This file was deleted.

0 comments on commit df751a4

Please sign in to comment.