blob: ea9ba8baeea553da459e2943f764dcd6ca2d1c41 [file] [log] [blame]
David Brown79c4fcf2021-01-26 15:04:05 -07001# SPDX-License-Identifier: Apache-2.0
Rajiv Ranganathce6fe632019-12-30 18:35:51 +05302#
3# Nix environment for imgtool
4#
5# To install the environment
6#
7# $ nix-env --file imgtool.nix --install env-imgtool
8#
9# To load the environment
10#
11# $ load-env-imgtool
12#
13with import <nixpkgs> {};
14let
15 # Nixpkgs has fairly recent versions of the dependencies, so we can
16 # rely on them without having to build our own derivations.
17 imgtoolPythonEnv = python37.withPackages (
18 _: [
19 python37.pkgs.click
20 python37.pkgs.cryptography
21 python37.pkgs.intelhex
22 python37.pkgs.setuptools
Ross Burtona6df1322021-11-02 11:12:04 +000023 python37.pkgs.cbor2
Rajiv Ranganathce6fe632019-12-30 18:35:51 +053024 ]
25 );
26in
27myEnvFun {
28 name = "imgtool";
29
30 buildInputs = [ imgtoolPythonEnv ];
31}