From 03897445ea1a108a2638dd74fbb93c942bb61e44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 2 Jan 2020 08:53:41 +0000 Subject: [PATCH] add default.nix for installation via nix Allows installation via nix from the repository itself on NixOS and other Linux distribution that have Nix (i.e. Archlinux/Debian). ``` $ nix-build $ ./result/bin/kconfig-hardened-check $ nix-env -f . -i ``` It also provides an development environment for `nix-shell` with setuptools and python in path ``` $ nix-shell ``` --- default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..b37caf6 --- /dev/null +++ b/default.nix @@ -0,0 +1,8 @@ +{ pkgs ? (import {}) }: +with pkgs; + +pkgs.python3.pkgs.buildPythonPackage { + name = "kconfig-hardend-check"; + src = ./.; + SOURCE_DATE_EPOCH = "1523278946"; +} -- 2.31.1