Skip to content

Commit

Permalink
pretalx: restore main program to pretalx
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Apr 12, 2024
1 parent 0d56181 commit 57f9408
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/pretalx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@
pretalx.overrideAttrs (
finalAttrs: previousAttrs: {
propagatedBuildInputs = previousAttrs.propagatedBuildInputs ++ withPlugins;
postInstall =
previousAttrs.postInstall
+ ''
cp $out/bin/${previousAttrs.meta.mainProgram} $out/bin/${finalAttrs.meta.mainProgram}
'';
passthru =
previousAttrs.passthru
// {
PYTHONPATH = "${pretalx.python.pkgs.makePythonPath finalAttrs.propagatedBuildInputs}:${pretalx.outPath}/${pretalx.python.sitePackages}";
};
meta =
previousAttrs.passthru
// {
mainProgram = "pretalx";
};
}
)

0 comments on commit 57f9408

Please sign in to comment.