aboutsummaryrefslogtreecommitdiff
path: root/flakes/copanier/flake.nix
blob: 74e68298b31e9bdb4552a4f8d103afd0aa8d39e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  description = "Copanier";

  inputs.flake-utils.url = "github:numtide/flake-utils";
  inputs.nixpkgs.url = "github:NixOS/nixpkgs";
  inputs.copanier = {
    url = "github:spiral-project/copanier";
    flake = false;
  };

  outputs = { self, copanier, flake-utils, nixpkgs }: flake-utils.lib.eachDefaultSystem (system:
    let
      pkgs = import nixpkgs { inherit system; overlays = []; };
    in rec {
      packages.copanier = pkgs.callPackage ./. { src = copanier; };
      defaultPackage = packages.copanier;
      legacyPackages.copanier = packages.copanier;
      apps.copanier = flake-utils.lib.mkApp { drv = packages.copanier; };
      defaultApp = apps.copanier;
    }) // rec {
      overlays = {
        copanier = final: prev: {
          copanier = self.defaultPackage."${final.system}";
        };
      };
      overlay = overlays.copanier;
    };
  }