blob: 7d750df45474f60df12516d2168cfbf43f9cd663 [file] [log] [blame]
Rajiv Ranganathce6fe632019-12-30 18:35:51 +05301#
2# Nix environment for imgtool
3#
4# To install the environment
5#
6# $ nix-env --file imgtool.nix --install env-imgtool
7#
8# To load the environment
9#
10# $ load-env-imgtool
11#
12with import <nixpkgs> {};
13let
14 # Nixpkgs has fairly recent versions of the dependencies, so we can
15 # rely on them without having to build our own derivations.
16 imgtoolPythonEnv = python37.withPackages (
17 _: [
18 python37.pkgs.click
19 python37.pkgs.cryptography
20 python37.pkgs.intelhex
21 python37.pkgs.setuptools
David Vincze71b8f982020-03-17 19:08:12 +010022 python37.pkgs.cbor
Rajiv Ranganathce6fe632019-12-30 18:35:51 +053023 ]
24 );
25in
26myEnvFun {
27 name = "imgtool";
28
29 buildInputs = [ imgtoolPythonEnv ];
30}