--- /dev/null
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1598238449,
+ "narHash": "sha256-Oj4lmzeOhiQgqcEpeXkwANkCstiCDOtevCgg6GlcDh4=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "14006b724f3d1f25ecf38238ee723d38b0c2f4ce",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-20.03",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
--- /dev/null
+{
+ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.03"; };
+ outputs = { self, nixpkgs, }:
+ let
+
+ inherit (builtins) attrNames;
+ inherit (nixpkgs.lib) genAttrs;
+
+ for-supported-systems = genAttrs (attrNames
+ ((import (nixpkgs + "/pkgs/top-level/release.nix")
+ { }).stdenvBootstrapTools));
+
+ packages = for-supported-systems (system: {
+ git-cache = import ./. { pkgs = nixpkgs.legacyPackages."${system}"; };
+ });
+
+ in {
+ inherit packages;
+
+ defaultApp = for-supported-systems (system: {
+ type = "app";
+ program = "${packages."${system}".git-cache}/bin/git-cache";
+ });
+ };
+}