-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
34 lines (32 loc) · 1.23 KB
/
flake.nix
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
29
30
31
32
33
34
{
description = "Placies";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nuget-packages-lock2nuget-deps.url = "github:Prunkles/nuget-packages-lock2nuget-deps";
};
outputs = inputs@{ nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
perSystem = { lib, pkgs, ... }:
let
nugetPackagesLockToNugetDeps = pkgs.callPackage inputs.nuget-packages-lock2nuget-deps.lib.nugetPackagesLockToNugetDeps { inherit nixpkgs; };
# Remove .nix files from src for better build caches
repoSrc = builtins.path {
path = ./.;
name = "placies-src";
recursive = true;
filter = path: type: !(type == "regular" && lib.hasSuffix ".nix" (builtins.baseNameOf path));
};
in
{
packages.placies-allowlist-proxy-gateway = pkgs.callPackage ./nix/pkgs/placies-allowlist-proxy-gateway {
inherit nugetPackagesLockToNugetDeps;
inherit repoSrc;
};
packages.placies-cli = pkgs.callPackage ./nix/pkgs/placies-cli {
inherit nugetPackagesLockToNugetDeps;
inherit repoSrc;
};
};
};
}