mirror of
https://github.com/NorfairKing/autodocodec.git
synced 2024-09-11 14:36:05 +03:00
34 lines
1.0 KiB
Nix
34 lines
1.0 KiB
Nix
{ sources ? import ./nix/sources.nix
|
|
, nixpkgs ? sources.nixpkgs
|
|
, system ? builtins.currentSystem
|
|
, pkgs ? import ./nix/pkgs.nix { inherit sources nixpkgs system; }
|
|
}:
|
|
let
|
|
pre-commit = import ./nix/pre-commit.nix { inherit sources; };
|
|
|
|
versions = {
|
|
"nixos-22_05" = sources.nixpkgs-22_05;
|
|
};
|
|
|
|
mkReleaseForVersion = version: nixpkgs:
|
|
let
|
|
p = import ./nix/pkgs.nix {
|
|
inherit sources nixpkgs system;
|
|
};
|
|
|
|
in
|
|
p.autodocodecRelease.overrideAttrs (old: { name = "autodocodec-release-${version}"; });
|
|
in
|
|
{
|
|
release = (import ./nix/pkgs.nix { inherit sources; }).autodocodecRelease;
|
|
pre-commit-check = (import ./nix/pre-commit.nix { }).run;
|
|
hoogle = pkgs.buildEnv {
|
|
name = "autodocodec-hoogle";
|
|
paths = [ (pkgs.haskellPackages.ghcWithHoogle (ps: pkgs.lib.attrValues pkgs.autodocodecPackages)) ];
|
|
};
|
|
shell = pkgs.symlinkJoin {
|
|
name = "autodocodec-shell";
|
|
paths = (import ./shell.nix { inherit sources pkgs pre-commit; }).buildInputs;
|
|
};
|
|
} // builtins.mapAttrs mkReleaseForVersion versions
|