-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
22 lines (22 loc) · 780 Bytes
/
flake.nix
File metadata and controls
22 lines (22 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
description = "Dev shell flake for plugin-scaffold";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
plugin-scaffold = pkgs.haskellPackages.callPackage ./nix { };
in with pkgs; {
devShells.default = (haskell.lib.addBuildTools plugin-scaffold [
haskell-language-server
cabal2nix
cabal-install
]).envFunc { };
packages.default = haskell.lib.justStaticExecutables plugin-scaffold;
});
}