Add docker image derivation
This commit is contained in:
parent
d5cd8905bb
commit
da2540c3fa
@ -167,7 +167,7 @@ showByteHex :: Word8 -> String
|
|||||||
showByteHex = printf " %02X"
|
showByteHex = printf " %02X"
|
||||||
|
|
||||||
showByteBin :: Word8 -> String
|
showByteBin :: Word8 -> String
|
||||||
showByteBin = printf "%8b"
|
showByteBin = printf "%08b"
|
||||||
|
|
||||||
blockName :: Char -> Maybe String
|
blockName :: Char -> Maybe String
|
||||||
blockName c = UnicodeBlocks.blockName . UnicodeBlocks.blockDefinition <$> UnicodeBlocks.block c
|
blockName c = UnicodeBlocks.blockName . UnicodeBlocks.blockDefinition <$> UnicodeBlocks.block c
|
||||||
|
9
nix/docker-image.nix
Normal file
9
nix/docker-image.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
let
|
||||||
|
pkgs = import ./pkgs.nix {};
|
||||||
|
utoy = import ../utoy.nix;
|
||||||
|
in
|
||||||
|
pkgs.dockerTools.buildImage {
|
||||||
|
name = "git.pbrinkmeier.de/paul/utoy";
|
||||||
|
tag = "1.0";
|
||||||
|
config.Cmd = [ "${utoy}/bin/utoy" ];
|
||||||
|
}
|
@ -14,7 +14,7 @@ license-file: LICENSE
|
|||||||
build-type: Simple
|
build-type: Simple
|
||||||
extra-source-files:
|
extra-source-files:
|
||||||
README.md
|
README.md
|
||||||
utoy.css
|
static/utoy.css
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
type: git
|
type: git
|
||||||
|
Loading…
x
Reference in New Issue
Block a user