mach-nix/flake.nix

31 lines
920 B
Nix
Raw Normal View History

2020-07-18 06:41:26 +00:00
{
2020-10-03 19:11:50 +00:00
description = "Create highly reproducible python environments";
2020-07-18 06:41:26 +00:00
2020-10-03 19:11:50 +00:00
inputs.flake-utils.url = "github:numtide/flake-utils";
2020-07-18 06:41:26 +00:00
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2020-07-18 06:41:26 +00:00
2020-10-03 19:11:50 +00:00
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShell = import ./shell.nix {
inherit pkgs;
};
packages =
{ mach-nix = import ./default.nix {inherit pkgs;}; };
# generate python packages for all known pypi sources here
# // builtins.foldl' (a: b: a // b) {} ;
2020-07-18 06:41:26 +00:00
2020-10-03 19:11:50 +00:00
defaultPackage = self.packages."${system}".mach-nix.mach-nix;
2020-07-18 06:41:26 +00:00
apps.mach-nix = flake-utils.lib.mkApp { drv = self.packages.mach-nix.mach-nix; };
2020-10-03 19:11:50 +00:00
defaultApp = { type = "app"; program = "${self.defaultPackage."${system}"}/bin/mach-nix"; };
}
);
2020-07-18 06:41:26 +00:00
}