]>
Commit | Line | Data |
---|---|---|
1a64deeb IB |
1 | { |
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"; | |
4 | inputs.nixpkgs = { | |
5 | url = "github:NixOS/nixpkgs/840c782d507d60aaa49aa9e3f6d0b0e780912742"; | |
6 | flake = false; | |
7 | }; | |
8 | inputs.grocy = { | |
9 | url = "github:grocy/grocy/d7738aa1ec330c81f11e4976681df0299d4ed35a"; | |
10 | flake = false; | |
11 | }; | |
12 | inputs.mypackages.url = "path:../mypackages"; | |
13 | outputs = { self, nixpkgs, grocy, flake-utils, mypackages }: flake-utils.lib.eachSystem ["x86_64-linux"] (system: | |
14 | let | |
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; | |
19 | in rec { | |
20 | packages.grocy = callPackage ./. { inherit composerEnv; src = grocy // { inherit version; }; }; | |
21 | defaultPackage = packages.grocy; | |
22 | legacyPackages.grocy = packages.grocy; | |
23 | checks = { | |
24 | build = defaultPackage; | |
25 | }; | |
26 | } | |
27 | ) // rec { | |
28 | overlays = { | |
29 | grocy = final: prev: { | |
30 | grocy = self.defaultPackage."${final.system}"; | |
31 | }; | |
32 | }; | |
33 | overlay = overlays.grocy; | |
34 | }; | |
35 | } |