mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Revert "Added initial setup for direnv" (#20721)
This reverts commit ac8eb37367
.
We want to keep the top level directory clean
This commit is contained in:
parent
61bf3ea57e
commit
c50af303d3
4 changed files with 0 additions and 97 deletions
2
.envrc
2
.envrc
|
@ -1,2 +0,0 @@
|
||||||
layout node
|
|
||||||
use flake .
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -66,9 +66,6 @@ typings/
|
||||||
# dotenv environment variables file
|
# dotenv environment variables file
|
||||||
.env
|
.env
|
||||||
|
|
||||||
# direnv
|
|
||||||
.direnv
|
|
||||||
|
|
||||||
# IDE
|
# IDE
|
||||||
.idea/*
|
.idea/*
|
||||||
*.iml
|
*.iml
|
||||||
|
|
43
flake.lock
generated
43
flake.lock
generated
|
@ -1,43 +0,0 @@
|
||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1708501555,
|
|
||||||
"narHash": "sha256-zJaF0RkdIPbh8LTmnpW/E7tZYpqIE+MePzlWwUNob4c=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "b50a77c03d640716296021ad58950b1bb0345799",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixpkgs-unstable",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": "nixpkgs",
|
|
||||||
"systems": "systems"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
49
flake.nix
49
flake.nix
|
@ -1,49 +0,0 @@
|
||||||
{
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
||||||
systems.url = "github:nix-systems/default";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = {
|
|
||||||
systems,
|
|
||||||
nixpkgs,
|
|
||||||
...
|
|
||||||
} @ inputs: let
|
|
||||||
yarn_overlay = final: prev: {
|
|
||||||
yarn = prev.yarn.overrideAttrs(finalAttrs: prevAttrs: {
|
|
||||||
# This is to make sure that yarn runs the correct node version
|
|
||||||
# https://github.com/NixOS/nixpkgs/issues/145634#issuecomment-1627476963
|
|
||||||
installPhase = prevAttrs.installPhase + ''
|
|
||||||
ln -fs $out/libexec/yarn/bin/yarn $out/bin/yarn
|
|
||||||
ln -fs $out/libexec/yarn/bin/yarn.js $out/bin/yarn.js
|
|
||||||
ln -fs $out/libexec/yarn/bin/yarn $out/bin/yarnpkg
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
# This gives us a central place to set the node version
|
|
||||||
node_overlay = final: prev: {
|
|
||||||
nodejs = prev.nodejs-18_x;
|
|
||||||
};
|
|
||||||
|
|
||||||
eachSystem = f:
|
|
||||||
nixpkgs.lib.genAttrs (import systems) (
|
|
||||||
system:
|
|
||||||
f ((nixpkgs.legacyPackages.${system}.extend yarn_overlay).extend node_overlay)
|
|
||||||
);
|
|
||||||
in {
|
|
||||||
|
|
||||||
devShells = eachSystem (pkgs: {
|
|
||||||
default = pkgs.mkShell {
|
|
||||||
buildInputs = with pkgs; [
|
|
||||||
nodejs
|
|
||||||
yarn
|
|
||||||
];
|
|
||||||
|
|
||||||
shellHook = ''
|
|
||||||
echo "node `${pkgs.nodejs}/bin/node --version`"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue