From dd3a8016d3148681886c9a2bba465d5eab85a0ac Mon Sep 17 00:00:00 2001 From: Jaculabilis Date: Sat, 10 Dec 2022 23:52:40 +0000 Subject: [PATCH] Revert default.nix change --- default.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/default.nix b/default.nix index 50cd1fe..792ea59 100644 --- a/default.nix +++ b/default.nix @@ -1,11 +1,8 @@ -(import - ( - let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in - fetchTarball { - url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; - sha256 = lock.nodes.flake-compat.locked.narHash; - } - ) - { src = ./.; } -).defaultNix +{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/4d2b37a84fad1091b9de401eb450aae66f1a741e.tar.gz") {} +}: +let + app = pkgs.poetry2nix.mkPoetryApplication { + projectDir = ./.; + }; +in app.dependencyEnv