fix flake
All checks were successful
Build and Publish / build-release (push) Successful in 1m24s

This commit is contained in:
2026-04-15 16:22:50 -05:00
parent b1b1c21e4e
commit 8b54f20828
2 changed files with 51 additions and 20 deletions

11
flake.lock generated
View File

@@ -20,15 +20,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1771950615, "lastModified": 1776169885,
"narHash": "sha256-Iqc6kksbvnjrg/9WYWGlOFw9J3o6/W5kBki4PvJp7X0=", "narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=",
"owner": "nixos", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f6f08216301df30f2acab89c39506c296ac10c21", "rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View File

@@ -1,25 +1,55 @@
{ {
description = "test"; description = "Customer Service - Phoenix/Commanded CQRS/ES service";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { self, nixpkgs, flake-utils, ... }: outputs = {
flake-utils.lib.eachDefaultSystem (system: self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
beamPackages = pkgs.beamPackages;
in { pname = "customer_service";
devShell = version = "1.0.0";
pkgs.mkShell { mixFodDeps = beamPackages.fetchMixDeps {
buildInputs = with pkgs; inherit pname version;
[ src = pkgs.lib.cleanSource ./.;
sha256 = "sha256-SspB/uMURF/QIjs+h11rr+X/pJ4dy7zuX8HV52CK998=";
};
package = beamPackages.mixRelease {
inherit pname version mixFodDeps;
src = pkgs.lib.cleanSource ./.;
meta = {
mainProgram = "customer_service";
};
removeCookie = false;
};
dockerImage = pkgs.dockerTools.buildLayeredImage {
name = "customer_service";
contents = [ package pkgs.bashInteractive pkgs.busybox pkgs.shadow ];
config = {
Cmd = [ "${package}/bin/customer_service" "start" ];
};
};
in
{
packages.default = package;
packages.dockerImage = dockerImage;
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
elixir elixir
elixir-ls elixir-ls
kubernetes-helm
git git
]; ];
}; };
}); }
);
} }