diff options
author | 2025-02-23 19:13:07 +0100 | |
---|---|---|
committer | 2025-02-23 21:40:51 +0100 | |
commit | 3038c6ead2167c7116a3b3411c8b5025373b8dd1 (patch) | |
tree | e605015b57b39dca3b829b2aa00c5e0c98f79850 /pkgs | |
parent | b2d4c0aa5a25dffa25269a80b30b50896de5a4bb (diff) |
bundle frontend with acmsmain
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/default.nix | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix index cc883c0..fd7290f 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -10,10 +10,22 @@ packageOverrides = pkgs.lib.composeManyExtensions [ super.haskell.packageOverrides (self: super: { - acms = self.callCabal2nix "acms" ../acms { }; + acms = (self.callCabal2nix "acms" ../acms { }).overrideAttrs (oldAttrs: + pkgs.lib.optionalAttrs pkgs.stdenv.isx86_64 + { + nativeBuildInputs = (oldAttrs.nativeBuildInputs or [ ]) ++ [ pkgs.makeWrapper ]; + postInstall = (oldAttrs.postInstall or "") + '' + wrapProgram $out/bin/acms \ + --set-default APPROOT ${pkgs.pkgsCross.ghcjs.haskell.packages.ghc910.frontend} + ''; + }); astore = haskellLib.doJailbreak (self.callCabal2nix "astore" sources.json2sql { }); autotypes = self.callCabal2nix "autotypes" ../autotypes { }; - frontend = self.callCabal2nix "frontend" ../frontend { }; + frontend = (self.callCabal2nix "frontend" ../frontend { }).overrideAttrs (_: { + installPhase = '' + cp -a dist/build/frontend/frontend.jsexe $out + ''; + }); sh = haskellLib.dontCheck (self.callCabal2nix "sh" sources.sh { }); repline = haskellLib.doJailbreak super.repline; uuid = haskellLib.doJailbreak super.uuid; |