Commit 56c4e53c authored by Valentin Reis's avatar Valentin Reis

Refactor packaging -> all nix code moves to argopkgs.

parent ed4c7a0a
Pipeline #5245 failed with stage
in 0 seconds
{
hostPkgs ? import <nixpkgs> {},
pkgs ? import (hostPkgs.nix-update-source.fetch ./argopkgs.json).src {},
argopkgs ? import <argopkgs> {},
}:
let
filterHdevTools = builtins.filterSource (path: type: baseNameOf path != ".hdevtools.sock");
rec {
argotk = argopkgs.argotk.overrideAttrs (old:{
src = ./.;
});
hpkgs = pkgs.haskellPackages.override {
overrides = self: super: rec {
argotk = (self.callCabal2nix "argotk" (filterHdevTools ./.) {}).overrideAttrs
(old:{buildInputs=old.buildInputs ++ [pkgs.hwloc];});
};
};
devHPackages = with hpkgs; [
cabal-install
apply-refact
hdevtools
hindent
hlint
shake
brittany
ghcid
];
in rec
{
argotk = hpkgs.argotk.overrideAttrs (old:{
installPhase = old.installPhase + ''
mkdir $out/share/
ARGOTK_SHARE=share $out/bin/argotk --bash-completion-script argotk > $out/share/argotk.sh
cp -r share/* $out/share/
substituteInPlace $out/share/simple-H2O.xml --replace \
H2O.HF.wfs.xml $out/share/H2O.HF.wfs.xml
substituteInPlace $out/share/simple-H2O.xml --replace \
O.BFD.xml $out/share/O.BFD.xml
substituteInPlace $out/share/simple-H2O.xml --replace \
H.BFD.xml $out/share/H.BFD.xml
'';
});
hack = hpkgs.shellFor {
packages = p: with p; [ argotk ];
withHoogle = true;
buildInputs = devHPackages;
};
hack = argopkgs.argolib.getHackEnv argopkgs argopkgs.haskellPackages argotk;
preCommit = pkgs.mkShell {
preCommit = argopkgs.mkShell {
name = "shake";
ARGOTK_SHARE = "${argotk}/share";
buildInputs = [
(pkgs.haskellPackages.ghcWithPackages (p: with p; [
(argopkgs.haskellPackages.ghcWithPackages (p: with p; [
argotk
pkgs.hwloc
shake
(pkgs.haskell.lib.doJailbreak panpipe)
panpipe
]))
];
};
......
......@@ -2,8 +2,8 @@
<settings>
<run_mode>eigenvalue</run_mode>
<particles>100</particles>
<batches>10</batches>
<inactive>2</inactive>
<batches>800</batches>
<inactive>1</inactive>
<source strength="1.0">
<space type="fission">
<parameters>-10.751819999999999 -10.751819999999999 36.007 10.751819999999999 10.751819999999999 236.0066</parameters>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment