-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
42 lines (37 loc) · 1.15 KB
/
flake.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
40
41
42
#
# Nix flake for hic2structure package
#
# This flake brings in and exports a few dependencies, which are available
# through the exported packages. Namely, the hic-straw python package
# from aidenlabs and a copy of LAMMPS with the basic packages enabled
#
{
description = "Python module for processing Hi-C files through LAMMPS";
inputs = {
# Nixpkgs
nixpkgs.url = "github:NixOS/nixpkgs/release-22.05";
# Flake-compat library
# (Used to generate a flake-less nix.shell file)
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
# Flake-utils library
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-compat, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
with builtins;
let
pkgs = nixpkgs.legacyPackages.${system};
myPkgs = import ./pkgs.nix { inherit pkgs; };
in
rec {
# Export packages
packages = { inherit (myPkgs) hic2structure hic-straw lammps; };
defaultPackage = packages.hic2structure;
# Development environment
devShell = myPkgs.devShell;
}
);
}