Compare commits

..

No commits in common. "b70de337cc32a40c8c3ac2696b3fd7cf891698ea" and "7565e29268adb61c3c88e67df8a6c8f6a4bb493e" have entirely different histories.

View file

@ -30,27 +30,14 @@
}; };
dontUnpack = true; dontUnpack = true;
nativeBuildInputs = [ python3 gnused ]; nativeBuildInputs = [ python3 ];
buildPhase = '' buildPhase = ''
runHook preBuild runHook preBuild
head -n14969 $gutenbergVirginian \ cp $gutenbergVirginian book1.txt
| sed '1,136d' \ cp $gutenbergCattleDiseases book2.txt
> book1.txt cp $gutenbergVetAnatomy book3.txt
head -n25236 $gutenbergCattleDiseases \
| sed '1,282d' \
| sed 's/_//g' \
| sed 's/=//g' \
| sed -E '/^(\s+\*){5}/,/^(\s+\*){5}/d' \
| sed '/^\s*\[Illustration:/,/^\]/d' \
> book2.txt
head -n43690 $gutenbergVetAnatomy \
| sed '1,367d' \
| sed '/^\[Illustration:/,/^\]/d' \
| sed 's/_//g' \
| sed 's/=//g' \
> book3.txt
python3 $src python3 $src
@ -97,19 +84,15 @@
}; };
container = with pkgs; container = with pkgs;
dockerTools.buildImage { dockerTools.buildImage {
name = "quay.io/millironx/babbler"; name = "babbler";
tag = "latest"; tag = "latest";
copyToRoot = [ babbler ]; copyToRoot = [ babbler ];
config = { config = { Cmd = [ "${babbler}/bin/babble" ]; };
Cmd = [ "${babbler}/bin/babble" ];
WorkingDir = "${babbler}/bin";
};
}; };
in { in {
packages = { packages = {
inherit babbler container; inherit babbler container;
default = babbler; default = babbler;
}; };
devShells.default = with pkgs; mkShell { inputsFrom = [ babbler ]; };
}); });
} }