fix mangal download and use grimblast

This commit is contained in:
Kopatz
2025-04-03 10:30:13 +02:00
parent 9a486f42b2
commit 0ca8bf32c2
3 changed files with 16 additions and 6 deletions

View File

@@ -3,6 +3,8 @@
, buildGoModule
, fetchFromGitHub
, installShellFiles
, libgbm
, makeWrapper
,
}:
buildGoModule rec {
@@ -23,7 +25,13 @@ buildGoModule rec {
"-w"
];
nativeBuildInputs = [ installShellFiles ];
buildInputs = [ libgbm ];
runtimeDeps = [ libgbm ];
nativeBuildInputs = [ installShellFiles makeWrapper ];
preFixup = ''
wrapProgram $out/bin/mangal --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libgbm ]}
'';
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
# Mangal creates a config file in the folder ~/.config/mangal and fails if not possible