diff --git a/flake.nix b/flake.nix index 4410f60..33d62b6 100644 --- a/flake.nix +++ b/flake.nix @@ -1,9 +1,13 @@ { description = "Dibbler samspleisebod"; - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - outputs = { self, nixpkgs, flake-utils }: let + libdib.url = "git+https://git.pvv.ntnu.no/Projects/libdib.git"; + }; + + outputs = { self, nixpkgs, flake-utils, libdib }: let inherit (nixpkgs) lib; systems = [ @@ -14,7 +18,12 @@ ]; forAllSystems = f: lib.genAttrs systems (system: let - pkgs = nixpkgs.legacyPackages.${system}; + pkgs = import nixpkgs { + inherit system; + overlays = [ + libdib.overlays.default + ]; + }; in f system pkgs); in { packages = forAllSystems (system: pkgs: { diff --git a/nix/dibbler.nix b/nix/dibbler.nix index 24dc21d..acbbcf1 100644 --- a/nix/dibbler.nix +++ b/nix/dibbler.nix @@ -16,6 +16,7 @@ python3Packages.buildPythonApplication { nativeBuildInputs = with python3Packages; [ setuptools ]; propagatedBuildInputs = with python3Packages; [ brother-ql + libdib matplotlib psycopg2 python-barcode diff --git a/nix/shell.nix b/nix/shell.nix index 7c93f0f..09ddbe8 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -12,6 +12,7 @@ mkShell { (python.withPackages (ps: with ps; [ brother-ql matplotlib + libdib psycopg2 python-barcode sqlalchemy