From e5e28948c051379417608f4aaf63b7380358d7fc Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Sun, 6 Jun 2021 12:50:35 +0200 Subject: [PATCH] flake compat --- default.nix | 3 +++ shell.nix | 15 +++------------ 2 files changed, 6 insertions(+), 12 deletions(-) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..b22e926 --- /dev/null +++ b/default.nix @@ -0,0 +1,3 @@ +(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) { + src = builtins.fetchGit ./.; +}).defaultNix diff --git a/shell.nix b/shell.nix index 870c926..db84e3d 100644 --- a/shell.nix +++ b/shell.nix @@ -1,12 +1,3 @@ -let - mach-nix = import (builtins.fetchGit { - url = "https://github.com/DavHau/mach-nix/"; - ref = "refs/tags/3.2.0"; - }) { - pypiDataRev = "9d28e464522798b5999f1ae55ba363ec12fde1e8"; - pypiDataSha256 = "0lwagvqcrj5yzw3iqyzz4radrbwa4z7p2sx4yy9chil6mlq5i68q"; - }; -in -mach-nix.mkPythonShell { - requirements = builtins.readFile ./requirements.txt; -} +(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) { + src = builtins.fetchGit ./.; +}).shellNix