commit f232d505b3fdb1ee4670f3dbfcf2132e4de94c04 Author: Jeffrey C. Ollie Date: Tue May 16 12:16:55 2023 -0500 first diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d6944e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/result* diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..6fa896c --- /dev/null +++ b/flake.lock @@ -0,0 +1,60 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1681202837, + "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "cfacdce06f30d2b68473a46042957675eebb3401", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1684215771, + "narHash": "sha256-fsum28z+g18yreNa1Y7MPo9dtps5h1VkHfZbYQ+YPbk=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "963006aab35e3e8ebbf6052b6bf4ea712fdd3c28", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..c030365 --- /dev/null +++ b/flake.nix @@ -0,0 +1,41 @@ +{ + description = "immich"; + + inputs = { + nixpkgs = { + url = "nixpkgs/nixos-unstable"; + }; + flake-utils = { + url = "github:numtide/flake-utils"; + }; + }; + + outputs = { self, nixpkgs, flake-utils }@inputs: + flake-utils.lib.eachDefaultSystem + (system: + let + pkgs = import nixpkgs { + inherit system; + }; + in + { + packages = { + immich-cli = + let + pname = "immich-cli"; + version = "0.36.0"; + in + pkgs.buildNpmPackage { + inherit pname version; + src = pkgs.fetchFromGitHub { + owner = "immich-app"; + repo = "CLI"; + rev = "v${version}"; + hash = "sha256-xdzmhTqIr9ngmcx2y0zliDn7EigxGkF+LTo1ak3tCJk="; + }; + npmDepsHash = "sha256-HD4xrKvyyVA7C7kBRYtDWRQ1EGKvKNOj2bnXa5Thcl8="; + }; + }; + } + ); +}