Skip to content

Instantly share code, notes, and snippets.

@drupol
Created September 12, 2022 09:36
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 drupol/aa54c05ed75b6b742c778371b5d742c7 to your computer and use it in GitHub Desktop.
Save drupol/aa54c05ed75b6b742c778371b5d742c7 to your computer and use it in GitHub Desktop.
flake.nix failing
{
description = "A PHP development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in
{
packages = {
default = pkgs.mkShellNoCC {
name = "devShellPHP";
buildInputs = [
(pkgs.php.buildEnv {
extensions = ({ enabled, all }: enabled ++ (with all; [
oci8
]));
})
];
};
};
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment