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.url = "git+ssh://git@losurdo.wg/julm/symantic-base?ref=main";
5 inputs.symantic-base.url = "git://git.sourcephile.fr/haskell/symantic-base";
6 inputs.symantic-base.inputs.nixpkgs.follows = "nixpkgs";
8 pkg = "symantic-plaintext";
9 lib = inputs.nixpkgs.lib;
10 forAllSystems = f: lib.genAttrs lib.systems.flakeExposed (system: f rec {
12 pkgs = inputs.nixpkgs.legacyPackages.${system};
13 haskellPackages = pkgs.haskellPackages.extend (with pkgs.haskell.lib; hfinal: hsuper: {
14 ${pkg} = buildFromSdist (hfinal.callCabal2nix pkg ./. {});
15 symantic-base = buildFromSdist (hfinal.callCabal2nix "symantic-base" inputs.symantic-base {});
20 defaultPackage = forAllSystems ({haskellPackages, ...}: haskellPackages.${pkg});
22 devShell = forAllSystems ({pkgs, haskellPackages, ...}:
23 haskellPackages.shellFor {
24 packages = ps: [ ps.${pkg} ];
26 haskellPackages.cabal-install
28 haskellPackages.haskell-language-server