Skip to content

Commit

Permalink
chore: Set up devenv
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianMotoche committed Sep 4, 2024
1 parent 0cf8b70 commit d538d5d
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 14 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ devenv.local.nix

# pre-commit
.pre-commit-config.yaml
# Devenv
.devenv*
devenv.local.nix

# direnv
.direnv

# pre-commit
.pre-commit-config.yaml
2 changes: 0 additions & 2 deletions bin/ghc810

This file was deleted.

2 changes: 0 additions & 2 deletions bin/ghc90

This file was deleted.

20 changes: 10 additions & 10 deletions devenv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1719003735,
"lastModified": 1725385033,
"owner": "cachix",
"repo": "devenv",
"rev": "ffbb18da9000524978d3e537f5e02f48535d2aed",
"treeHash": "60ca1cd5b478a61ecc2ec0e454be4ff7b7c3241b",
"rev": "b3d6c84d66618197b47a8baa8d00d1d9d283a93c",
"treeHash": "15100bcb1f1ab557ea9977fc90d515ff8f7d43b8",
"type": "github"
},
"original": {
Expand Down Expand Up @@ -72,16 +72,16 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1718811006,
"lastModified": 1725001927,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "03d771e513ce90147b65fe922d87d3a0356fc125",
"treeHash": "ab837eb82b2b0afbb6568f2b27f214324699af3d",
"rev": "6e99f2a27d600612004fbd2c3282d614bfee6421",
"treeHash": "1e85443cc9f0ba302df2cf61cacb8014943e2d19",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.11",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
Expand All @@ -96,11 +96,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1718879355,
"lastModified": 1724857454,
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "8cd35b9496d21a6c55164d8547d9d5280162b07a",
"treeHash": "246f2197feb48979ccc58af4cab0cfd0f5738645",
"rev": "4509ca64f1084e73bc7a721b20c669a8d4c5ebe6",
"treeHash": "ced5a8df7c554ce10bf26223c002f41b31aff034",
"type": "github"
},
"original": {
Expand Down
12 changes: 12 additions & 0 deletions devenv.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ pkgs, lib, config, inputs, ... }:

{
packages = [ pkgs.git ];

languages.haskell.enable = true;
languages.haskell.package = pkgs.haskell.compiler.ghc98;

enterTest = ''
cabal test
'';
}
3 changes: 3 additions & 0 deletions devenv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
inputs:
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling

0 comments on commit d538d5d

Please sign in to comment.