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 4476a4d
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.meta
// {
mainProgram = "pretalx";
};
}
)

0 comments on commit 4476a4d

Please sign in to comment.