2 description = "ERP beyond your fridge - grocy is a web-based self-hosted groceries & household management solution for your home";
3 inputs.flake-utils.url = "github:numtide/flake-utils";
5 url = "github:NixOS/nixpkgs/840c782d507d60aaa49aa9e3f6d0b0e780912742";
9 url = "github:grocy/grocy/d7738aa1ec330c81f11e4976681df0299d4ed35a";
12 inputs.mypackages.url = "path:../mypackages";
13 outputs = { self, nixpkgs, grocy, flake-utils, mypackages }: flake-utils.lib.eachSystem ["x86_64-linux"] (system:
15 pkgs = import nixpkgs { inherit system; overlays = []; };
16 composerEnv = mypackages.lib."${system}".composerEnv;
17 version = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.grocy.original.ref;
18 inherit (pkgs) callPackage;
20 packages.grocy = callPackage ./. { inherit composerEnv; src = grocy // { inherit version; }; };
21 defaultPackage = packages.grocy;
22 legacyPackages.grocy = packages.grocy;
24 build = defaultPackage;
29 grocy = final: prev: {
30 grocy = self.defaultPackage."${final.system}";
33 overlay = overlays.grocy;