~sbaildon/baildon.co

28262a1d2ff979b4188d284222f3628417b9a3cb — Sean Baildon 1 year, 1 month ago a94136a
aarch64, tailwind from nixpkgs
2 files changed, 17 insertions(+), 35 deletions(-)

M flake.lock
M flake.nix
M flake.lock => flake.lock +8 -24
@@ 2,39 2,23 @@
  "nodes": {
    "nixpkgs": {
      "locked": {
        "lastModified": 1651369430,
        "narHash": "sha256-d86uUm0s11exU9zLo2K1AwtJQJDKubFpoF0Iw767uT4=",
        "lastModified": 1689582805,
        "narHash": "sha256-Qx/DVhF2+8pA8jC1o+mcwOaSVkMr4+e943JzfaoFmsQ=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "b283b64580d1872333a99af2b4cef91bb84580cf",
        "rev": "1211e44d5b89641d47cedbec89dd2210a0a1aca8",
        "type": "github"
      },
      "original": {
        "id": "nixpkgs",
        "type": "indirect"
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "1211e44d5b89641d47cedbec89dd2210a0a1aca8",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "nixpkgs": "nixpkgs",
        "tailwindcssPkg": "tailwindcssPkg"
      }
    },
    "tailwindcssPkg": {
      "inputs": {
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1,
        "narHash": "sha256-rW7VEO9V252lI0DuZA5Fh0nvGj0epjufZEkGWgll94U=",
        "path": "./nix/tailwindcss",
        "type": "path"
      },
      "original": {
        "path": "./nix/tailwindcss",
        "type": "path"
        "nixpkgs": "nixpkgs"
      }
    }
  },

M flake.nix => flake.nix +9 -11
@@ 4,27 4,25 @@
  # go here for using all system
  # https://serokell.io/blog/practical-nix-flakes

  inputs =
    {
      tailwindcssPkg.url = "path:./nix/tailwindcss";
      tailwindcssPkg.inputs.nixpkgs.follows = "nixpkgs";
    };
  inputs = {
    nixpkgs.url =
      "github:NixOS/nixpkgs/1211e44d5b89641d47cedbec89dd2210a0a1aca8";
  };


  outputs = { self, nixpkgs, tailwindcssPkg }:
    let
      pkgs = nixpkgs.legacyPackages.x86_64-darwin;
      tailwindcss = tailwindcssPkg.packages.x86_64-darwin.tailwindcss;

  outputs = { self, nixpkgs }:
    let
      pkgs = nixpkgs.legacyPackages.aarch64-darwin;
    in
    {
      # nix develop
      devShells.x86_64-darwin.default = pkgs.mkShell {
      devShells.aarch64-darwin.default = pkgs.mkShell {
        buildInputs = with pkgs.darwin.apple_sdk.frameworks; [
          pkgs.mustache-go
          pkgs.libwebp
          pkgs.pandoc
          tailwindcss
          pkgs.tailwindcss
        ];
      };
    };