-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdefault.nix
39 lines (36 loc) · 960 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
38
39
{
pkgs ? import <nixpkgs> {},
# For setting python version. Ignored if `pythonPackages` argument
# is explicitly given.
python3 ? true,
pythonPackages ? if python3 then pkgs.python3Packages
else pkgs.python2Packages,
}:
let
inherit (pythonPackages) buildPythonPackage;
colored = buildPythonPackage rec {
name = "colored-${version}";
version = "1.1.5";
doCheck = false;
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/c/colored/${name}.tar.gz";
sha256 = "1r1vsypk8v7az82d66bidbxlndx1h7xd4m43hpg1a6hsjr30wrm3";
};
};
in
buildPythonPackage rec {
name = "lsi-${version}";
version = "0.3.1";
propagatedBuildInputs = [
colored
pkgs.openssh
pkgs.which
pythonPackages.six
pythonPackages.boto
];
src = ./.;
# Silly check phase for now, better than nothing until we write real tests...
checkPhase = ''
$out/bin/lsi --help >/dev/null
'';
}