packages/zapzap: remove flake from repo
This commit is contained in:
parent
5275d7a226
commit
2c015fc1e6
24
packages/zapzap/default.nix
Normal file
24
packages/zapzap/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{pkgs}: {
|
||||
zapzap = pkgs.python3Packages.buildPythonPackage {
|
||||
name = "zapzap";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "zapzap-linux";
|
||||
repo = "zapzap";
|
||||
rev = "5de4a4015128c164af3c964ecbe5b6358d98b521";
|
||||
hash = "sha256-bd3YcITK4lraOu7D/xZfnibilAZQZWqazVVtUwqJ4wc=";
|
||||
};
|
||||
dontWrapQtApps = true;
|
||||
propagatedBuildInputs = with pkgs.python3Packages; [pyqt6-webengine qt6.qtwayland qt6.qtsvg];
|
||||
nativeBuildInputs = with pkgs; [qt6.wrapQtAppsHook makeWrapper];
|
||||
env = {
|
||||
HOME = "/tmp";
|
||||
};
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=(
|
||||
# Force the app to use QT_PLUGIN_PATH values from wrapper
|
||||
--unset QT_PLUGIN_PATH
|
||||
"''${qtWrapperArgs[@]}"
|
||||
)
|
||||
'';
|
||||
};
|
||||
}
|
27
packages/zapzap/flake.lock
generated
27
packages/zapzap/flake.lock
generated
@ -1,27 +0,0 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1698336494,
|
||||
"narHash": "sha256-sO72WDBKyijYD1GcKPlGsycKbMBiTJMBCnmOxLAs880=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "808c0d8c53c7ae50f82aca8e7df263225cf235bf",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
|
||||
outputs = inputs @ {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
|
||||
in {
|
||||
packages = forAllSystems (system: rec {
|
||||
zapzap = pkgs.${system}.python3Packages.buildPythonPackage {
|
||||
name = "zapzap";
|
||||
src = pkgs.${system}.fetchFromGitHub {
|
||||
owner = "zapzap-linux";
|
||||
repo = "zapzap";
|
||||
rev = "5de4a4015128c164af3c964ecbe5b6358d98b521";
|
||||
hash = "sha256-bd3YcITK4lraOu7D/xZfnibilAZQZWqazVVtUwqJ4wc=";
|
||||
};
|
||||
dontWrapQtApps = true;
|
||||
propagatedBuildInputs = with pkgs.${system}.python3Packages; [pyqt6-webengine qt6.qtwayland qt6.qtsvg];
|
||||
nativeBuildInputs = with pkgs.${system}; [qt6.wrapQtAppsHook makeWrapper];
|
||||
env = {
|
||||
HOME = "/tmp";
|
||||
};
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=(
|
||||
# Force the app to use QT_PLUGIN_PATH values from wrapper
|
||||
--unset QT_PLUGIN_PATH
|
||||
"''${qtWrapperArgs[@]}"
|
||||
)
|
||||
'';
|
||||
};
|
||||
default = zapzap;
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user