Compare commits

..

2 Commits

8 changed files with 36 additions and 22 deletions

View File

@@ -31,21 +31,27 @@
{ {
overlays.default = _final: prev: { overlays.default = _final: prev: {
python3Packages = prev.python3Packages.override { python3Packages = prev.python3Packages.override {
overrides = pyself: pysuper: { overrides = _pyself: _pysuper: {
webcomix = prev.python3Packages.callPackage ./pkgs_pr/webcomix.nix { }; webcomix = prev.python3Packages.callPackage ./pkgs_pr/webcomix.nix { };
download = prev.python3Packages.callPackage ./pkgs/download.nix {
webcomix = _pyself.webcomix;
};
}; };
}; };
download = _final.python3Packages.download;
}; };
packages.x86_64-linux = packages.x86_64-linux =
let let
scriptBin = path: name: pkgs.writeScriptBin name (builtins.readFile path); scriptBin = path: name: pkgs.writeScriptBin name (builtins.readFile path);
pkgsBin = path: _name: pkgsBin =
path: _name:
let let
content = builtins.readFile path; content = builtins.readFile path;
in in
if builtins.match ".*(buildPythonPackage|buildPythonApplication).*" content != null if builtins.match ".*(buildPythonPackage|buildPythonApplication).*" content != null then
then pkgs.python3Packages.callPackage path { } pkgs.python3Packages.callPackage path { }
else pkgs.callPackage path { }; else
pkgs.callPackage path { };
in in
{ {
citra = pkgs.callPackage ./pkgs/citra/default.nix { branch = "nightly"; }; citra = pkgs.callPackage ./pkgs/citra/default.nix { branch = "nightly"; };

View File

@@ -7,7 +7,7 @@
xclip, xclip,
ghostty, ghostty,
rmlint, rmlint,
callPackage, download,
... ...
}: }:
writeShellApplication { writeShellApplication {
@@ -21,6 +21,7 @@ writeShellApplication {
xclip xclip
ghostty ghostty
rmlint rmlint
download
]; ];
text = builtins.readFile ../src/packaged_scripts/run.sh; text = builtins.readFile ../src/packaged_scripts/run.sh;

View File

@@ -39,11 +39,11 @@ buildPythonApplication rec {
click click
tqdm tqdm
scrapy scrapy
(scrapy-splash.overridePythonAttrs (oldAttrs: { (scrapy-splash.overridePythonAttrs (_oldAttrs: {
doCheck = false; doCheck = false;
nativeCheckInputs = [ ]; nativeCheckInputs = [ ];
})) }))
(scrapy-fake-useragent.overridePythonAttrs (oldAttrs: { (scrapy-fake-useragent.overridePythonAttrs (_oldAttrs: {
doCheck = false; doCheck = false;
nativeCheckInputs = [ ]; nativeCheckInputs = [ ];
checkPhase = ""; checkPhase = "";
@@ -58,7 +58,7 @@ buildPythonApplication rec {
''; '';
doCheck = false; doCheck = false;
# Skip runtime dependency check due to version mismatches with nixpkgs # Skip runtime dependency check due to version mismatches with nixpkgs
dontCheckRuntimeDeps = true; dontCheckRuntimeDeps = true;

View File

@@ -28,27 +28,36 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
gtk4 gtk4
libadwaita libadwaita
(python3.withPackages (ps: with ps; [ (python3.withPackages (
pygobject3 ps: with ps; [
pycairo pygobject3
])) pycairo
]
))
]; ];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/bin $out/share/hexcolordle-gtk $out/share/applications $out/share/metainfo mkdir -p $out/bin $out/share/hexcolordle-gtk $out/share/applications $out/share/metainfo
cp -r * $out/share/hexcolordle-gtk/ cp -r * $out/share/hexcolordle-gtk/
# Install desktop file and metainfo # Install desktop file and metainfo
cp net.krafting.HexColordle.desktop $out/share/applications/ cp net.krafting.HexColordle.desktop $out/share/applications/
cp net.krafting.HexColordle.metainfo.xml $out/share/metainfo/ cp net.krafting.HexColordle.metainfo.xml $out/share/metainfo/
# Create wrapper for the main Python file # Create wrapper for the main Python file
makeWrapper ${python3.withPackages (ps: with ps; [pygobject3 pycairo])}/bin/python3 $out/bin/hexcolordle-gtk \ makeWrapper ${
python3.withPackages (
ps: with ps; [
pygobject3
pycairo
]
)
}/bin/python3 $out/bin/hexcolordle-gtk \
--add-flags "$out/share/hexcolordle-gtk/HexColordle.py" \ --add-flags "$out/share/hexcolordle-gtk/HexColordle.py" \
--prefix PYTHONPATH : "$out/share/hexcolordle-gtk" --prefix PYTHONPATH : "$out/share/hexcolordle-gtk"
runHook postInstall runHook postInstall
''; '';

View File

@@ -15,7 +15,6 @@
gtk4, gtk4,
libadwaita, libadwaita,
wrapGAppsHook4, wrapGAppsHook4,
makeWrapper,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {

View File

@@ -27,7 +27,7 @@ buildPythonApplication rec {
pythonRemoveDeps = [ pythonRemoveDeps = [
"pyside6-essentials" "pyside6-essentials"
]; ];
# Skip runtime dependency check for missing packages # Skip runtime dependency check for missing packages
dontCheckRuntimeDeps = true; dontCheckRuntimeDeps = true;

View File

@@ -55,7 +55,7 @@ buildPythonApplication rec {
slowapi slowapi
uvicorn uvicorn
]; ];
# Skip runtime dependency check due to version mismatches with nixpkgs # Skip runtime dependency check due to version mismatches with nixpkgs
dontCheckRuntimeDeps = true; dontCheckRuntimeDeps = true;

View File

@@ -2,7 +2,6 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
callPackage,
setuptools, setuptools,
wheel, wheel,
six, six,