flake.nix: add libdib

This commit is contained in:
2025-06-07 15:02:29 +02:00
parent 634716956e
commit 2a42522573
3 changed files with 14 additions and 3 deletions

View File

@@ -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: {

View File

@@ -16,6 +16,7 @@ python3Packages.buildPythonApplication {
nativeBuildInputs = with python3Packages; [ setuptools ];
propagatedBuildInputs = with python3Packages; [
brother-ql
libdib
matplotlib
psycopg2
python-barcode

View File

@@ -12,6 +12,7 @@ mkShell {
(python.withPackages (ps: with ps; [
brother-ql
matplotlib
libdib
psycopg2
python-barcode
sqlalchemy