mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-01-11 00:02:37 +08:00
initial commit
This commit is contained in:
parent
c7adcfa6b9
commit
fe36ee45a4
1 changed files with 33 additions and 0 deletions
33
source/recipes/devshell/haskell-flake/flake.nix
Normal file
33
source/recipes/devshell/haskell-flake/flake.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
description = "Pandoc build system for maths web";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
haskell-flake.url = "github:srid/haskell-flake";
|
||||
pandoc-linear-table.url = "/home/amy/github/pandoc-linear-table";
|
||||
pandoc-logic-proof.url = "/home/amy/github/pandoc-logic-proof";
|
||||
pandoc-columns.url = "/home/amy/github/pandoc-columns";
|
||||
pandoc-query.url = "/home/amy/codeberg/pandoc-query";
|
||||
};
|
||||
outputs = inputs@{ self, nixpkgs, flake-parts, pandoc-linear-table, pandoc-logic-proof, pandoc-columns, pandoc-query, ... }:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = nixpkgs.lib.systems.flakeExposed;
|
||||
imports = [ inputs.haskell-flake.flakeModule ];
|
||||
|
||||
perSystem = { self', pkgs, ... }: {
|
||||
haskellProjects.default = {
|
||||
# use my versions of some Haskell pagkages instead of the nixpkgs versions
|
||||
packages = {
|
||||
pandoc-linear-table.source = inputs.pandoc-linear-table;
|
||||
pandoc-logic-proof.source = inputs.pandoc-logic-proof;
|
||||
pandoc-columns.source = inputs.pandoc-columns;
|
||||
pandoc-query.source = inputs.pandoc-query;
|
||||
};
|
||||
};
|
||||
|
||||
# haskell-flake doesn't set the default package, but you can do it here.
|
||||
packages.default = self'.packages.pandoc-maths-web;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue