Compare commits

..

No commits in common. "7a91c520ee9f374d16d6a03317f65ff5af413c81" and "1a2d9edc99661b8817418d02d8de6b40269cf942" have entirely different histories.

5 changed files with 15 additions and 20 deletions

View File

@ -6,29 +6,24 @@
$ nix build
```
## Running
```
$ nix run
```
## Building the Docker image
```
$ docker load < $(nix build .#docker --print-out-paths)
# TODO
$ docker load < $(nix-build nix/docker-image.nix)
```
## Development Shell
Includes Stack, GHC, `haskell-language-server`, `gen-hie` etc.
Includes Stack, `haskell-language-server`, `gen-hie` etc.
```
$ nix develop
nix develop
```
## Running Stack and GHC
```
$ nix run .#stack
$ nix run .#ghc
nix run .#stack
nix run .#ghc
```

View File

@ -57,13 +57,6 @@
inherit stack;
inherit utoy;
docker =
pkgs.dockerTools.buildImage {
name = "git.pbrinkmeier.de/paul/utoy";
tag = utoy.version;
config.Cmd = [ "${utoy}/bin/utoy" ];
};
default = utoy;
};

9
nix/docker-image.nix Normal file
View 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 = utoy.version;
config.Cmd = [ "${utoy}/bin/utoy" ];
}

View File

@ -1,7 +1,6 @@
# Adapted from new-template.hsfiles
name: utoy
# Keep this in sync with the version in flake.nix.
version: 0.5
git: "https://git.pbrinkmeier.de/paul/utoy"
license: MIT

View File

@ -1,5 +1,4 @@
# You can get a working environment using nix develop.
# Keep this in sync with nix/settings.nix
resolver: ghc-9.4.4
packages:
- .