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,13 +2,12 @@
pkgs, pkgs,
self, self,
... ...
}: { }: let
my-package = let
version = "1.0.0"; version = "1.0.0";
src = ./.; src = ./.;
pname = "my-package"; pname = "my-package";
in in {
pkgs.beamPackages.mixRelease { ${pname} = pkgs.beamPackages.mixRelease {
inherit pname version src; inherit pname version src;
mixFodDeps = pkgs.beamPackages.fetchMixDeps { mixFodDeps = pkgs.beamPackages.fetchMixDeps {
inherit version src; inherit version src;
@ -20,5 +19,5 @@
# MIX_XDG = "$HOME"; # MIX_XDG = "$HOME";
}; };
default = self.packages.${pkgs.system}.my-package; default = self.packages.${pkgs.system}.${pname};
} }