Skip to content

Instantly share code, notes, and snippets.

@lstrojny
Created August 30, 2023 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lstrojny/47bff48346995bf3d606bdf32b43b560 to your computer and use it in GitHub Desktop.
Save lstrojny/47bff48346995bf3d606bdf32b43b560 to your computer and use it in GitHub Desktop.
{
description = "ufff";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
phps.url = "github:loophp/nix-shell";
systems.url = "github:nix-systems/default";
};
outputs = inputs@{ self, flake-parts, systems, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = import systems;
perSystem = { pkgs, system, ... }: {
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ inputs.phps.overlays.default ];
};
# Run `nix fmt` to reformat the nix files
formatter = pkgs.nixfmt;
devShells.default = pkgs.mkShellNoCC {
name = "ufff";
buildInputs = [ pkgs.php-env82 pkgs.sphinx (pkgs.python3.withPackages (p: with p; [ sphinx-rtd-theme ])) ];
};
};
};
}
@lstrojny
Copy link
Author

This is the resulting error:

       error: attribute 'api' missing

       at /nix/store/dhfg509620jwb0g4v83vxnrlphz3l6by-source/flake.nix:27:17:

           26|         phps = map
           27|           (php: pkgs.api.buildPhpFromComposer { inherit php; src = inputs.self; })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment