modernize

This commit is contained in:
2024-11-15 00:21:53 +01:00
parent 1164d492a3
commit e1605aab29
6 changed files with 27 additions and 18 deletions

View File

@@ -1,17 +1,24 @@
{ lib
, python3Packages
, fetchFromGitHub
, buildPythonApplication
, setuptools
, brother-ql
, matplotlib
, psycopg2
, python-barcode
, sqlalchemy
}:
python3Packages.buildPythonApplication {
buildPythonApplication {
pname = "dibbler";
version = "unstable-2021-09-07";
version = "0-unstable-2021-09-07";
pyproject = true;
src = lib.cleanSource ../.;
format = "pyproject";
nativeBuildInputs = with python3Packages; [ setuptools ];
propagatedBuildInputs = with python3Packages; [
brother-ql
built-system = [ setuptools ];
dependencies = [
brother-ql#-next
matplotlib
psycopg2
python-barcode

View File

@@ -23,7 +23,10 @@ in {
group = "dibbler";
extraGroups = [ "lp" ];
isNormalUser = true;
shell = ((pkgs.writeShellScriptBin "login-shell" "${screen} -x dibbler") // {shellPath = "/bin/login-shell";});
shell = (
(pkgs.writeShellScriptBin "login-shell" "${screen} -x dibbler")
// {shellPath = "/bin/login-shell";}
);
};
};