Add nix package

This commit is contained in:
Toast 2025-05-06 16:25:12 +02:00
parent 1575222c9d
commit 6a4272502e
2 changed files with 36 additions and 0 deletions

View file

@ -28,6 +28,10 @@
cmake
] ++ kdeDeps;
};
packages.x86_64-linux = rec {
default = leek;
leek = pkgs.callPackage ./package.nix { };
};
};
}

32
package.nix Normal file
View file

@ -0,0 +1,32 @@
{
kdePackages,
python3Packages,
qt6
}: python3Packages.buildPythonApplication rec {
pname = "leek";
version = "0.0.1";
pyproject = true;
src = ./.;
build-system = [
python3Packages.setuptools
];
dependencies = with python3Packages; [
pyside6
];
nativeBuildInputs = [
qt6.wrapQtAppsHook
];
propagatedBuildInputs = [
kdePackages.kirigami
];
makeWrapperArgs = [
"\${qtWrapperArgs[@]}"
];
}