Macos build
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
{ lib, self, mixRelease, fetchMixDeps, elixir }: mixRelease rec {
|
||||
{
|
||||
lib,
|
||||
self,
|
||||
mixRelease,
|
||||
fetchMixDeps,
|
||||
elixir,
|
||||
}:
|
||||
mixRelease rec {
|
||||
pname = "sso_bsn";
|
||||
version = "0.0.1";
|
||||
|
||||
|
||||
20
flake.nix
20
flake.nix
@@ -1,19 +1,27 @@
|
||||
{
|
||||
description = "A simple OIDC SSO service";
|
||||
|
||||
outputs = { self, nixpkgs, systems }: let
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
systems,
|
||||
}: let
|
||||
inherit (nixpkgs) lib;
|
||||
eachSystem = f: lib.genAttrs (import systems) (system: f {
|
||||
eachSystem = f:
|
||||
lib.genAttrs (import systems) (system:
|
||||
f {
|
||||
inherit system;
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
ownPkgs = self.packages.${system};
|
||||
});
|
||||
in {
|
||||
devShells = eachSystem ({ pkgs, ... }: {
|
||||
default = pkgs.beam.beamLib.callPackage ./shell.nix {};
|
||||
devShells = eachSystem ({pkgs, ...}: {
|
||||
default = pkgs.beam.packages.erlang_26.callPackage ./shell.nix {};
|
||||
});
|
||||
packages = eachSystem ({ pkgs, ... }: {
|
||||
default = pkgs.beam.packages.erlang.callPackage ./default.nix { inherit self; inherit (pkgs) elixir; };
|
||||
packages = eachSystem ({pkgs, ...}: {
|
||||
default = pkgs.beam.packages.erlang_26.callPackage ./default.nix {
|
||||
inherit self;
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
20
shell.nix
20
shell.nix
@@ -1,6 +1,20 @@
|
||||
{ mkShell, elixir, elixir-ls, inotify-tools, sqlite-interactive }:
|
||||
mkShell {
|
||||
packages = [ elixir elixir-ls inotify-tools sqlite-interactive ];
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
mkShell,
|
||||
elixir,
|
||||
elixir-ls,
|
||||
inotify-tools,
|
||||
sqlite-interactive,
|
||||
}:
|
||||
mkShell {
|
||||
packages =
|
||||
[elixir elixir-ls sqlite-interactive]
|
||||
++ lib.lists.optional (pkgs.system == "x86_64-linux") inotify-tools
|
||||
++ lib.lists.optionals (pkgs.system == "aarch64-darwin") (with pkgs.darwin.apple_sdk.frameworks; [
|
||||
CoreFoundation
|
||||
CoreServices
|
||||
]);
|
||||
shellHook = ''
|
||||
mkdir -p .nix-mix
|
||||
mkdir -p .nix-hex
|
||||
|
||||
Reference in New Issue
Block a user