2 inputs.nixpkgs.url = "flake:nixpkgs";
3 inputs.symantic-base.url = "git+https://git.code.sourcephile.fr/~julm/symantic-base?ref=main";
4 inputs.symantic-base.inputs.nixpkgs.follows = "nixpkgs";
6 pkg = "symantic-plaintext";
7 lib = inputs.nixpkgs.lib;
8 forAllSystems = f: lib.genAttrs lib.systems.supported.hydra (system: f rec {
10 pkgs = inputs.nixpkgs.legacyPackages.${system};
11 haskellPackages = pkgs.haskellPackages.extend (with pkgs.haskell.lib; hfinal: hsuper: {
12 ${pkg} = buildFromSdist (hfinal.callCabal2nix pkg ./. {});
13 symantic-base = buildFromSdist (hfinal.callCabal2nix "symantic-base" inputs.symantic-base {});
18 defaultPackage = forAllSystems ({haskellPackages, ...}: haskellPackages.${pkg});
20 devShell = forAllSystems ({pkgs, haskellPackages, ...}:
21 haskellPackages.shellFor {
22 packages = ps: [ ps.${pkg} ];
24 haskellPackages.cabal-install
26 haskellPackages.haskell-language-server