add default.nix for installation via nix
authorJörg Thalheim <joerg@thalheim.io>
Thu, 2 Jan 2020 08:53:41 +0000 (08:53 +0000)
committerAlexander Popov <alex.popov@linux.com>
Thu, 26 Mar 2020 13:52:25 +0000 (16:52 +0300)
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 [new file with mode: 0644]

diff --git a/default.nix b/default.nix
new file mode 100644 (file)
index 0000000..b37caf6
--- /dev/null
@@ -0,0 +1,8 @@
+{ pkgs ? (import <nixpkgs> {}) }:
+with pkgs;
+
+pkgs.python3.pkgs.buildPythonPackage {
+  name = "kconfig-hardend-check";
+  src = ./.;
+  SOURCE_DATE_EPOCH = "1523278946";
+}