should probably do this in a different branch

This commit is contained in:
thornAvery 2021-10-14 22:34:25 +00:00
parent 16925c182e
commit e564146c4c
6 changed files with 1 additions and 130 deletions

View file

@ -11,7 +11,7 @@ version: 0.1.0.0
-- license: -- license:
license-file: LICENSE license-file: LICENSE
author: Thorn Avery author: Thorn Avery
maintainer: s@p7.co.nz maintainer: ta@p7.co.nz
-- copyright: -- copyright:
-- category: -- category:
build-type: Simple build-type: Simple

View file

@ -1,43 +0,0 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1618868421,
"narHash": "sha256-vyoJhLV6cJ8/tWz+l9HZLIkb9Rd9esE7p+0RL6zDR6Y=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "eed214942bcfb3a8cc09eb3b28ca7d7221e44a94",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1618942778,
"narHash": "sha256-k4zWLjNokLjhHT79RpmlFjQ7r0a1jc2BM62Jvgd0bF4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "17a28909d4e8f8568b2640b6dcdff85cf372c6df",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-20.09",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View file

@ -1,19 +0,0 @@
{
description = "a basic cellular automata using comonads";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
overlays = [ (import ./overlay.nix) ];
inherit system;
};
in {
defaultPackage = pkgs.cellularAutomata;
}) // {
overlay = import ./overlay.nix;
};
}

View file

@ -1,17 +0,0 @@
{ mkDerivation, base, brick, containers, deepseq, lib, linear
, microlens, microlens-th, ncurses, process, random, turtle, vty
}:
mkDerivation {
pname = "cellularAutomata";
version = "0.1.0.0";
src = ./..;
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
base brick containers deepseq linear microlens microlens-th process
random turtle vty
];
executableSystemDepends = [ ncurses ];
license = "unknown";
hydraPlatforms = lib.platforms.none;
}

View file

@ -1,3 +0,0 @@
final: prev: {
cellularAutomata = (import ./release.nix) prev;
}

View file

@ -1,47 +0,0 @@
bspkgs:
let
dontCheckPackages = [ ];
doJailbreakPackages = [ ];
dontHaddockPackages = [ ];
config = {
packageOverrides = pkgs: rec {
haskellPackages =
let
generatedOverrides = haskellPackagesNew: haskellPackagesOld:
let
toPackage = file: _: {
name = builtins.replaceStrings [ ".nix" ] [ "" ] file;
value = haskellPackagesNew.callPackage
( ./. + "/nix/${file}") { };
};
in
pkgs.lib.mapAttrs' toPackage
(builtins.readDir ./nix);
makeOverrides =
function: names: haskellPackagesNew: haskellPackagesOld:
let
toPackage = name: {
inherit name;
value = function haskellPackagesOld.${name};
};
in
builtins.listToAttrs (map toPackage names);
composeExtensionsList =
pkgs.lib.fold pkgs.lib.composeExtensions (_: _: {});
manualOverrides = haskellPackagesNew: haskellPackagesOld: {
};
in
pkgs.haskellPackages.override {
overrides = composeExtensionsList [
generatedOverrides
(makeOverrides pkgs.haskell.lib.dontCheck dontCheckPackages)
(makeOverrides pkgs.haskell.lib.doJailbreak doJailbreakPackages)
(makeOverrides pkgs.haskell.lib.dontHaddock dontHaddockPackages)
manualOverrides
];
};
};
};
pkgs = import bspkgs.path { inherit config; system = bspkgs.system; };
in
pkgs.haskellPackages.cellularAutomata