Skip to content

Commit

Permalink
stash away minimal nix env to develop both on x86 and aarch64.
Browse files Browse the repository at this point in the history
  • Loading branch information
c0c0n3 committed Aug 13, 2023
1 parent 2e05bf7 commit 0688ba1
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
48 changes: 48 additions & 0 deletions nix/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions nix/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
description = "QuantumLeap dev tools.";

inputs = {
nixpkgs.url = "github:NixOs/nixpkgs/nixos-23.05";
nixie = {
url = "github:c0c0n3/nixie";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, nixie }:
let
buildWith = nixie.lib.flakes.mkOutputSetForCoreSystems nixpkgs;
mkSysOutput = { system, sysPkgs }:
{
defaultPackage.${system} = with sysPkgs;
let
pyenv = python38.withPackages (ps: with ps;
[ pipenv pip wheel setuptools ]
);
in buildEnv {
name = "quantumleap-shell";
paths = [ pyenv ];
};
};
in
buildWith mkSysOutput;
}

0 comments on commit 0688ba1

Please sign in to comment.