From 6b3d6452eb0ecd019468eff149b023560360e566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 17 Aug 2022 14:53:51 +0200 Subject: add flake --- flake.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3e7263a --- /dev/null +++ b/flake.nix @@ -0,0 +1,19 @@ +{ + description = "Description for the project"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + + outputs = { self, nixpkgs, ... }: { + lib = import ./. { + inherit (nixpkgs) lib; + }; + checks.x86_64-linux = let + pkgs = nixpkgs.legacyPackages.x86_64-linux; + in { + # Run tests: nix flake check -L + nixos-test = pkgs.callPackage ./tests/test.nix { + makeTest = import (pkgs.path + "/nixos/tests/make-test-python.nix"); + }; + }; + }; +} -- cgit v1.2.3