Install dependencies with Nix

This commit is contained in:
Oliver Davies 2024-12-07 17:02:13 +00:00
parent 4c0edabc0b
commit dfcf54ee84
5 changed files with 66 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

10
.gitignore vendored
View file

@ -8,3 +8,13 @@
/source/build/ /source/build/
s3.conf s3.conf
/vendor/ /vendor/
# Devenv
.devenv*
devenv.local.nix
# direnv
.direnv
# pre-commit
.pre-commit-config.yaml

27
flake.lock Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1722813957,
"narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

24
flake.nix Normal file
View file

@ -0,0 +1,24 @@
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs =
{ nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
bashInteractive
nodePackages.pnpm
nodejs
php82
php82Packages.composer
];
};
formatter.${system} = pkgs.nixfmt-rfc-style;
};
}

View file

@ -6,3 +6,7 @@ sculpin/sculpin-theme-composer-plugin contains a Composer plugin which is curren
Do you trust "sculpin/sculpin-theme-composer-plugin" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y Do you trust "sculpin/sculpin-theme-composer-plugin" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y
rm LICENSE README.md publish.sh s3.conf.dist s3-publish.sh rm LICENSE README.md publish.sh s3.conf.dist s3-publish.sh
devenv
devenv init