Commit 10636ff6 authored by marius david's avatar marius david
Browse files

Add flake config

parent f762488d
Loading
Loading
Loading
Loading

flake.lock

0 → 100644
+57 −0
Original line number Diff line number Diff line
{
  "nodes": {
    "nixpkgs": {
      "locked": {
        "lastModified": 0,
        "narHash": "sha256-Ky0sgEEJMcBmNEJztY6KcVn+6bq74EKM7pd1CR1wnPQ=",
        "path": "/nix/store/8a28fidv5mblmk31vj24a5xlmqlqqrc9-source",
        "type": "path"
      },
      "original": {
        "id": "nixpkgs",
        "type": "indirect"
      }
    },
    "root": {
      "inputs": {
        "nixpkgs": "nixpkgs",
        "utils": "utils"
      }
    },
    "systems": {
      "locked": {
        "lastModified": 1681028828,
        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
        "owner": "nix-systems",
        "repo": "default",
        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
        "type": "github"
      },
      "original": {
        "owner": "nix-systems",
        "repo": "default",
        "type": "github"
      }
    },
    "utils": {
      "inputs": {
        "systems": "systems"
      },
      "locked": {
        "lastModified": 1710146030,
        "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    }
  },
  "root": "root",
  "version": 7
}

flake.nix

0 → 100644
+26 −0
Original line number Diff line number Diff line
{
  inputs = {
    utils.url = "github:numtide/flake-utils";
  };
  outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system:
    let
      pkgs = nixpkgs.legacyPackages.${system};
    in
    {
			packages = rec {
				website = pkgs.stdenvNoCC.mkDerivation {
					pname = "lemmy-atlas-website";
					version = "TODO-use-git";

					dontUnpack = true;

					installPhase = ''
						mkdir -p $out
						cp -r ${./web}/* $out/
					'';
				};
				default = website;
			};
		}
  );
}
 No newline at end of file