migrate-to-gitea/flake.nix

38 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2022-07-11 05:02:02 +00:00
{
description = "cli tool to migrate from git{hub,lab} to a gitea instance";
inputs = {
2022-07-18 04:32:53 +00:00
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
flake-parts.url = github:hercules-ci/flake-parts;
2022-07-17 03:11:34 +00:00
flake-parts.inputs.nixpkgs.follows = "nixpkgs";
2022-07-18 04:32:53 +00:00
haskell-flake.url = github:srid/haskell-flake;
2022-07-17 03:11:34 +00:00
relude = {
2022-07-18 04:32:53 +00:00
url = github:kowainik/relude;
2022-07-17 03:11:34 +00:00
flake = false;
};
2022-07-11 05:02:02 +00:00
};
2022-07-17 03:11:34 +00:00
outputs = { self, nixpkgs, flake-parts, haskell-flake, ... }@inputs:
flake-parts.lib.mkFlake { inherit self; } {
imports = [
haskell-flake.flakeModule
];
systems = nixpkgs.lib.systems.flakeExposed;
perSystem = { self', pkgs, ... }: {
haskellProjects.default = {
haskellPackages = pkgs.haskell.packages.ghc923;
root = ./.;
source-overrides = { inherit (inputs) relude; };
overrides = self: super: with pkgs.haskell.lib; {
retry = dontCheck super.retry;
relude = dontCheck super.relude;
};
buildTools = hp: {
ghcid = null;
hlint = null;
};
};
};
};
2022-07-11 05:02:02 +00:00
}