Simplify
All checks were successful
/ check (push) Successful in 5m19s

This commit is contained in:
Daniel Flanagan 2024-12-19 20:36:06 -06:00
parent 9fdea1fd17
commit ebfe621f4c

View file

@ -2,23 +2,22 @@
pkgs,
self,
...
}: {
my-package = let
version = "1.0.0";
src = ./.;
pname = "my-package";
in
pkgs.beamPackages.mixRelease {
inherit pname version src;
mixFodDeps = pkgs.beamPackages.fetchMixDeps {
inherit version src;
pname = "mix-deps-${pname}";
hash = pkgs.lib.fakeSha256;
};
# buildInputs = with pkgs; [];
# HOME = "$(pwd)";
# MIX_XDG = "$HOME";
}: let
version = "1.0.0";
src = ./.;
pname = "my-package";
in {
${pname} = pkgs.beamPackages.mixRelease {
inherit pname version src;
mixFodDeps = pkgs.beamPackages.fetchMixDeps {
inherit version src;
pname = "mix-deps-${pname}";
hash = pkgs.lib.fakeSha256;
};
# buildInputs = with pkgs; [];
# HOME = "$(pwd)";
# MIX_XDG = "$HOME";
};
default = self.packages.${pkgs.system}.my-package;
default = self.packages.${pkgs.system}.${pname};
}