diff --git a/flake.lock b/flake.lock index 0f8fa66..60ddc6c 100644 --- a/flake.lock +++ b/flake.lock @@ -1,12 +1,50 @@ { "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "id": "flake-utils", + "type": "indirect" + } + }, + "libdib": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1749301134, + "narHash": "sha256-JHLVV4ug8AgG71xhXEdmXozQfesXut6NUdXbBZNkD3c=", + "ref": "refs/heads/main", + "rev": "ca26131c22bb2833c81254dbabab6d785b9f37f0", + "revCount": 8, + "type": "git", + "url": "https://git.pvv.ntnu.no/Projects/libdib.git" + }, + "original": { + "type": "git", + "url": "https://git.pvv.ntnu.no/Projects/libdib.git" + } + }, "nixpkgs": { "locked": { - "lastModified": 1742578646, - "narHash": "sha256-GiQ40ndXRnmmbDZvuv762vS+gew1uDpFwOfgJ8tLiEs=", + "lastModified": 1749213349, + "narHash": "sha256-UAaWOyQhdp7nXzsbmLVC67fo+QetzoTm9hsPf9X3yr4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "94c4dbe77c0740ebba36c173672ca15a7926c993", + "rev": "a4ff0e3c64846abea89662bfbacf037ef4b34207", "type": "github" }, "original": { @@ -18,8 +56,24 @@ }, "root": { "inputs": { + "libdib": "libdib", "nixpkgs": "nixpkgs" } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index a45772c..224a2e1 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,12 @@ { - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - outputs = { self, nixpkgs }: let + libdib.url = "git+https://git.pvv.ntnu.no/Projects/libdib.git"; + libdib.inputs.nixpkgs.follows = "nixpkgs"; + }; + + outputs = inputs@{ self, nixpkgs, ... }: let systems = [ "x86_64-linux" "aarch64-linux" @@ -10,7 +15,12 @@ ]; forAllSystems = f: nixpkgs.lib.genAttrs systems (system: let - pkgs = nixpkgs.legacyPackages.${system}; + pkgs = import nixpkgs { + inherit system; + overlays = [ + inputs.libdib.overlays.default + ]; + }; in f system pkgs); inherit (nixpkgs) lib; @@ -28,6 +38,7 @@ }) flask-sqlalchemy isbnlib + libdib psycopg2-binary python-dotenv requests