Skip to content

Commit

Permalink
Nix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
idontgetoutmuch committed May 2, 2024
1 parent 91f8b77 commit 707f4b0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use nix
36 changes: 36 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
let

myHaskellPackageOverlay = self: super: {
myHaskellPackages = super.haskellPackages.override {
overrides = hself: hsuper: rec {
};
};
};

in

{ nixpkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/refs/tags/23.11.tar.gz")
{
config.allowBroken = false;
overlays = [ myHaskellPackageOverlay ];
}
}:

let

pkgs = nixpkgs;

haskellDeps = ps: with ps; [
base mwc-random random
];

in

pkgs.stdenv.mkDerivation {
name = "Whatever";

buildInputs = [
(pkgs.myHaskellPackages.ghcWithPackages haskellDeps)
pkgs.cabal-install
];
}

0 comments on commit 707f4b0

Please sign in to comment.