Switch to using Dunai instead of Yampa

This commit is contained in:
Kiana Sheibani 2023-01-17 21:51:52 -05:00
parent aeb5550dc2
commit 85bf7d520f
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
4 changed files with 26 additions and 22 deletions

View file

@ -1,3 +1,3 @@
# Snake (with Yampa) # Snake (with Dunai)
A second project based on Functional Reactive Programming after [conways-game-of-life](https://github.com/kiana-S/conways-game-of-life). A second project based on Functional Reactive Programming after [conways-game-of-life](https://github.com/kiana-S/conways-game-of-life).

View file

@ -2,27 +2,32 @@
"nodes": { "nodes": {
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1644229661, "lastModified": 1667395993,
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=", "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797", "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "flake-utils", "owner": "numtide",
"type": "indirect" "repo": "flake-utils",
"type": "github"
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"narHash": "sha256-4va4MvJ076XyPp5h8sm5eMQvCrJ6yZAbBmyw95dGyw4=", "lastModified": 1674004508,
"path": "/nix/store/d9wpzgyjlpw1424kw2lyilah6690fnk3-source", "narHash": "sha256-sB5hYccS1Uoemc8pRA8z17HZ9hrGHrWqn8g0nQm7/lg=",
"type": "path" "owner": "NixOS",
"repo": "nixpkgs",
"rev": "c8b20e1c4168642f9fc92fb8d7fa465eb7a18c5c",
"type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "owner": "NixOS",
"type": "indirect" "repo": "nixpkgs",
"type": "github"
} }
}, },
"root": { "root": {

View file

@ -1,5 +1,10 @@
{ {
description = "A snake game in Haskell using Yampa"; description = "A snake game in Haskell using Dunai";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }: outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
@ -12,7 +17,7 @@
execName = packageName; execName = packageName;
# version of ghc used # version of ghc used
hp = pkgs.haskellPackages; hp = pkgs.haskell.packages.ghc92;
project = returnShellEnv: project = returnShellEnv:
hp.developPackage { hp.developPackage {
@ -20,13 +25,6 @@
name = packageName; name = packageName;
root = ./.; root = ./.;
withHoogle = false; withHoogle = false;
overrides = self: super: with pkgs.haskell.lib; {
# Use callCabal2nix to override Haskell dependencies here
# cf. https://tek.brick.do/K3VXJd8mEKO7
# Example:
# > NanoID = self.callCabal2nix "NanoID" inputs.NanoID { };
# Assumes that you have the 'NanoID' flake input defined.
};
modifier = drv: modifier = drv:
pkgs.haskell.lib.addBuildTools drv (with hp; [ pkgs.haskell.lib.addBuildTools drv (with hp; [
# Specify your build/dev dependencies here. # Specify your build/dev dependencies here.

View file

@ -1,12 +1,13 @@
cabal-version: 2.4 cabal-version: 2.4
name: snake name: snake
version: 0.0 version: 0.0
synopsis: A snake game using Yampa synopsis: A snake game using Dunai
author: Kiana Sheibani author: Kiana Sheibani
license: MIT license: MIT
build-type: Simple build-type: Simple
executable snake executable snake
main-is: Main.hs main-is: Main.hs
default-language: GHC2021
other-modules: other-modules:
build-depends: build-depends: dunai