Skip to content

Commit

Permalink
dream2nix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantm committed Mar 5, 2022
1 parent 88a8584 commit c4fd259
Show file tree
Hide file tree
Showing 5 changed files with 6,901 additions and 1 deletion.
129 changes: 129 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions flake.nix
@@ -0,0 +1,15 @@
{
inputs.dream2nix.url = "github:nix-community/dream2nix";
outputs = { self, dream2nix }@inputs:
let
dream2nix = inputs.dream2nix.lib.init {
# modify according to your supported systems
systems = [ "x86_64-linux" ];
config.projectRoot = ./. ;
config.overridesDirs = [./overrides];
};
in dream2nix.makeFlakeOutputs {
pname = "discourse";
source = ./.;
};
}
13 changes: 13 additions & 0 deletions overrides/nodejs/default.nix
@@ -0,0 +1,13 @@
{pkgs,...}:
{
discourse = {
build = {
buildInputs = with pkgs; [
jq
nodejs
python3
yarn
];
};
};
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -57,7 +57,7 @@
"lodash": "4.17.21"
},
"scripts": {
"postinstall": "yarn --cwd app/assets/javascripts/discourse"
"postinstall": "yarn --offline --cwd app/assets/javascripts/discourse"
},
"engines": {
"node": "12.* || 14.* || >= 16",
Expand Down

0 comments on commit c4fd259

Please sign in to comment.