Compare commits
2 Commits
1a2d9edc99
...
7a91c520ee
Author | SHA1 | Date | |
---|---|---|---|
7a91c520ee | |||
bff14baa1f |
17
README.md
17
README.md
@ -6,24 +6,29 @@
|
|||||||
$ nix build
|
$ nix build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Running
|
||||||
|
|
||||||
|
```
|
||||||
|
$ nix run
|
||||||
|
```
|
||||||
|
|
||||||
## Building the Docker image
|
## Building the Docker image
|
||||||
|
|
||||||
```
|
```
|
||||||
# TODO
|
$ docker load < $(nix build .#docker --print-out-paths)
|
||||||
$ docker load < $(nix-build nix/docker-image.nix)
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development Shell
|
## Development Shell
|
||||||
|
|
||||||
Includes Stack, `haskell-language-server`, `gen-hie` etc.
|
Includes Stack, GHC, `haskell-language-server`, `gen-hie` etc.
|
||||||
|
|
||||||
```
|
```
|
||||||
nix develop
|
$ nix develop
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running Stack and GHC
|
## Running Stack and GHC
|
||||||
|
|
||||||
```
|
```
|
||||||
nix run .#stack
|
$ nix run .#stack
|
||||||
nix run .#ghc
|
$ nix run .#ghc
|
||||||
```
|
```
|
||||||
|
@ -57,6 +57,13 @@
|
|||||||
inherit stack;
|
inherit stack;
|
||||||
inherit utoy;
|
inherit utoy;
|
||||||
|
|
||||||
|
docker =
|
||||||
|
pkgs.dockerTools.buildImage {
|
||||||
|
name = "git.pbrinkmeier.de/paul/utoy";
|
||||||
|
tag = utoy.version;
|
||||||
|
config.Cmd = [ "${utoy}/bin/utoy" ];
|
||||||
|
};
|
||||||
|
|
||||||
default = utoy;
|
default = utoy;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
let
|
|
||||||
pkgs = import ./pkgs.nix {};
|
|
||||||
utoy = import ../utoy.nix;
|
|
||||||
in
|
|
||||||
pkgs.dockerTools.buildImage {
|
|
||||||
name = "git.pbrinkmeier.de/paul/utoy";
|
|
||||||
tag = utoy.version;
|
|
||||||
config.Cmd = [ "${utoy}/bin/utoy" ];
|
|
||||||
}
|
|
@ -1,6 +1,7 @@
|
|||||||
# Adapted from new-template.hsfiles
|
# Adapted from new-template.hsfiles
|
||||||
|
|
||||||
name: utoy
|
name: utoy
|
||||||
|
# Keep this in sync with the version in flake.nix.
|
||||||
version: 0.5
|
version: 0.5
|
||||||
git: "https://git.pbrinkmeier.de/paul/utoy"
|
git: "https://git.pbrinkmeier.de/paul/utoy"
|
||||||
license: MIT
|
license: MIT
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# You can get a working environment using nix develop.
|
# You can get a working environment using nix develop.
|
||||||
|
# Keep this in sync with nix/settings.nix
|
||||||
resolver: ghc-9.4.4
|
resolver: ghc-9.4.4
|
||||||
packages:
|
packages:
|
||||||
- .
|
- .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user