Skip to content

Commit ae6be3e

Browse files
kjanoszmichalrus
authored andcommitted
Add nix-shell derivation for highlander repo
1 parent 076f214 commit ae6be3e

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

default.nix

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
with import <nixpkgs> {}; {
2+
main = let
3+
dnsimple = python27Packages.buildPythonPackage rec {
4+
name = "dnsimple-${version}";
5+
version = "0.3.6";
6+
7+
src = pkgs.fetchurl {
8+
url = "mirror://pypi/d/dnsimple/${name}.tar.gz";
9+
sha256 = "0cc7v6wn246n3gjpzy8aq8v3xbrxl9a423b84i2z2cjjbq8b7fvf";
10+
};
11+
12+
propagatedBuildInputs = [ python27Packages.requests ];
13+
};
14+
in (buildFHSUserEnv {
15+
name = "main";
16+
targetPkgs = pkgs: (with pkgs; [ ansible2 curl dnsimple docker gnumake git google-cloud-sdk openssh python27Full python27Packages.libcloud python27Packages.pycrypto python27Packages.requests rsync ] ++ python27Packages.libcloud.propagatedBuildInputs ++ dnsimple.propagatedBuildInputs);
17+
profile = ''
18+
source .env.local;
19+
export PYTHONPATH="/usr/lib/python2.7/site-packages"
20+
'';
21+
}).env;
22+
23+
api-docs = stdenv.mkDerivation {
24+
name = "api-docs";
25+
buildInputs = [ gcc pkgconfig nodejs-6_x ];
26+
shellHook = ''
27+
source .env.local
28+
cd api-docs
29+
'';
30+
};
31+
32+
ashes = let
33+
flow25 = stdenv.lib.overrideDerivation flow (oldAttrs : rec {
34+
name = "flow-${version}";
35+
version = "0.25.0";
36+
37+
src = fetchFromGitHub {
38+
owner = "facebook";
39+
repo = "flow";
40+
rev = "v${version}";
41+
sha256 = "1v82phl1cb10p0ggjq9w6a0bcysjxwgmlqsp9263n3j52dl74yi8";
42+
};
43+
});
44+
in stdenv.mkDerivation {
45+
name = "ashes";
46+
buildInputs = [ gcc pkgconfig fontconfig cairo libpng pixman nodejs-6_x flow25 ];
47+
shellHook = ''
48+
source .env.local
49+
cd ashes
50+
ln -sf `readlink -f $(which flow)` node_modules/flow-bin/vendor/flow
51+
'';
52+
};
53+
54+
green-river = stdenv.mkDerivation {
55+
name = "green-river";
56+
buildInputs = [ openjdk sbt ];
57+
shellHook = ''
58+
source .env.local
59+
cd green-river
60+
'';
61+
};
62+
63+
middlewarehouse = stdenv.mkDerivation {
64+
name = "middlewarehouse";
65+
buildInputs = [ go glide ];
66+
shellHook = ''
67+
source .env.local
68+
cd middlewarehouse
69+
'';
70+
};
71+
72+
phoenix = stdenv.mkDerivation {
73+
name = "phoenix";
74+
buildInputs = [ openjdk sbt ];
75+
shellHook = ''
76+
source .env.local
77+
cd phoenix-scala
78+
'';
79+
};
80+
}

0 commit comments

Comments
 (0)