-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
37 lines (37 loc) · 959 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{}:
let
pkgs = import <nixpkgs> {};
ruby = (pkgs.ruby_2_6.override { useRailsExpress = false; });
stdenv = pkgs.stdenv;
bundler = pkgs.bundler.override { inherit ruby; };
bundix = pkgs.bundix.override { inherit bundler; };
pgloader = pkgs.callPackage ./pgloader.nix {};
wkhtmltopdf = pkgs.callPackage ./wkhtmltopdf/default.nix { overrideDerivation = pkgs.lib.overrideDerivation; };
gems = pkgs.bundlerEnv {
name = "hive";
inherit ruby;
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
groups = [ "default" "production" "development" "test" ];
};
in stdenv.mkDerivation {
name = "hive";
buildInputs = [
wkhtmltopdf
bundix
#bundler # enable for native bundle
gems
gems.wrappedRuby
gems.bundler
pkgs.which
pkgs.file
pkgs.postgresql
pkgs.mysql
pkgs.heroku
pkgs.inotify-tools
];
dontStrip = true;
dontPatchELF = true;
dontGzipMan = true;
}