forked from smarkets/marge-bot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
marge.nix
22 lines (22 loc) · 866 Bytes
/
marge.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{pkgs ? import ./pinnedNixpkgs.nix }:
let version = builtins.replaceStrings ["\n"] [""] (builtins.readFile ./version);
python = (import ./requirements.nix { inherit pkgs; });
py = python.packages;
in
python.mkDerivation {
version = "${version}";
name = "marge-${version}";
src = ./.;
buildInputs = [py.pytest py.pytest-cov py.pytest-flake8 py.pytest-pylint py.pytest-runner];
propagatedBuildInputs = [py.ConfigArgParse py.maya py.PyYAML py.requests pkgs.openssh pkgs.git];
meta = {
homepage = "https://github.com/smarkets/marge-bot";
description = "A build bot for GitLab";
license = with pkgs.lib.licenses; [bsd3] ;
maintainers = [
"Alexander Schmolck <[email protected]>"
"Jaime Lennox <[email protected]>"
];
platforms = pkgs.lib.platforms.linux ++ pkgs.lib.platforms.darwin;
};
}