Skip to content

Commit 2f9bd8d

Browse files
committed
Convert devShell to nix flake
1 parent 8d5807f commit 2f9bd8d

File tree

4 files changed

+81
-17
lines changed

4 files changed

+81
-17
lines changed

.envrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
use nix
1+
#!/bin/sh
2+
3+
use flake

default.nix

Lines changed: 0 additions & 16 deletions
This file was deleted.

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
description = "wp2static-addon-s3";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils, ... }:
10+
flake-utils.lib.eachDefaultSystem (system:
11+
with import nixpkgs { inherit system; };
12+
with pkgs; {
13+
devShells.default = mkShell {
14+
buildInputs = [ php phpPackages.composer shellcheck zip ];
15+
};
16+
});
17+
}

0 commit comments

Comments
 (0)