From 3ff3ea55944ff691f20b60f1e5007a60a61cfec4 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 19 Oct 2021 11:34:44 +0200 Subject: [PATCH] Replace niv with flakes --- flake.lock | 41 +++++++++++++++++++++++++++++++++++++++++ flake.nix | 11 +++++++++++ shell.nix | 2 +- 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..487da25 --- /dev/null +++ b/flake.lock @@ -0,0 +1,41 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1631561581, + "narHash": "sha256-3VQMV5zvxaVLvqqUrNz3iJelLw30mIVSfZmAaauM3dA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "7e5bf3925f6fbdfaf50a2a7ca0be2879c4261d19", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1634044603, + "narHash": "sha256-JX9/U/ci9Gw1fhWjEB3HfzDK8bAbcfQcTO6fEJmgFfo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "15847b4b4fc260fb400880aa3cbee65a65f252c5", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..5340610 --- /dev/null +++ b/flake.nix @@ -0,0 +1,11 @@ +{ + description = + "locimend is a tool that corrects DNA sequencing errors using Deep Learning"; + + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = nixpkgs.legacyPackages.${system}; + in { devShell = import ./shell.nix { inherit pkgs; }; }); +} diff --git a/shell.nix b/shell.nix index c94ca29..1c52b55 100644 --- a/shell.nix +++ b/shell.nix @@ -1,4 +1,4 @@ -{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }: +{ pkgs ? import { } }: with pkgs;