starting version

This commit is contained in:
Dmitry Zuikov 2023-02-07 12:02:15 +03:00
parent 1e95e53d3b
commit 07298c6a7b
6 changed files with 127 additions and 1 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View File

@ -1 +1,2 @@
dist-newstyle/
.direnv/

60
flake.lock Normal file
View File

@ -0,0 +1,60 @@
{
"nodes": {
"flake-utils": {
"locked": {
"lastModified": 1644229661,
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"haskell-flake-utils": {
"inputs": {
"flake-utils": "flake-utils"
},
"locked": {
"lastModified": 1672412555,
"narHash": "sha256-Kaa8F7nQFR3KuS6Y9WRUxeJeZlp6CCubyrRfmiEsW4k=",
"owner": "ivanovs-4",
"repo": "haskell-flake-utils",
"rev": "896219e5bde6efac72198550454e9dd9b5ed9ac9",
"type": "github"
},
"original": {
"owner": "ivanovs-4",
"repo": "haskell-flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1675758091,
"narHash": "sha256-7gFSQbSVAFUHtGCNHPF7mPc5CcqDk9M2+inlVPZSneg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "747927516efcb5e31ba03b7ff32f61f6d47e7d87",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"haskell-flake-utils": "haskell-flake-utils",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

55
flake.nix Normal file
View File

@ -0,0 +1,55 @@
{
description = "suckless-cong: sexp based configs";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
haskell-flake-utils.url = "github:ivanovs-4/haskell-flake-utils";
};
outputs = { self, nixpkgs, haskell-flake-utils, ... }@inputs:
haskell-flake-utils.lib.simpleCabal2flake {
inherit self nixpkgs;
# systems = [ "x86_64-linux" ];
name = "suckless-conf";
## Optional parameters follow
# nixpkgs config
# config = { };
# Add another haskell flakes as requirements
# haskellFlakes = [ inputs.another-simple-haskell-flake ];
# Use this to load other flakes overlays to supplement nixpkgs
# preOverlays = [ ];
# Pass either a function or a file
# preOverlay = ./overlay.nix;
# Override haskell packages
# hpPreOverrides = { pkgs }: new: old:
# with pkgs.haskell.lib; with haskell-flake-utils.lib;
# tunePackages pkgs old {
# some-haskellPackages-package = [ dontHaddock ];
# } // {
# some-cabal-pkg = ((jailbreakUnbreak pkgs) (dontCheck (old.callCabal2nix "some-cabal-pkg" inputs.some-cabal-pkg {})));
# };
# Arguments for callCabal2nix
# cabal2nixArgs = {pkgs}: {
# };
# Maps to the devShell output. Pass in a shell.nix file or function
# shell = ./shell.nix
# Additional build intputs of the default shell
# shellExtBuildInputs = {pkgs}: with pkgs; [
# haskellPackages.haskell-language-server
# ];
# Wether to build hoogle in the default shell
# shellWithHoogle = true;
};
}

View File

@ -0,0 +1,8 @@
module Data.Config.Suckless.Parse
( module Data.Config.Suckless.Parse.Megaparsec
) where
import Data.Config.Suckless.Parse.Megaparsec

View File

@ -60,7 +60,8 @@ library
import: shared-properties
exposed-modules:
Data.Config.Suckless.Syntax
Data.Config.Suckless.Syntax
, Data.Config.Suckless.Parse
other-modules:
Data.Config.Suckless.Types