mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
riffle: init at 1.0.4 (#570928)
This commit is contained in:
@@ -20595,6 +20595,11 @@
|
||||
github = "naurissteins";
|
||||
githubId = 5653746;
|
||||
};
|
||||
naved124 = {
|
||||
name = "Naved124";
|
||||
github = "Naved124";
|
||||
githubId = 86107643;
|
||||
};
|
||||
naxdy = {
|
||||
name = "Naxdy";
|
||||
email = "naxdy@naxdy.org";
|
||||
|
||||
62
pkgs/by-name/ri/riffle/package.nix
Normal file
62
pkgs/by-name/ri/riffle/package.nix
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
qt6,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication (finalAttrs: {
|
||||
pname = "riffle";
|
||||
version = "1.0.4";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Naved124";
|
||||
repo = "riffle";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-hH9zUjULqeohUXaj67P2CMDzbZBkZajfW2M8JGH5HaM=";
|
||||
};
|
||||
|
||||
build-system = [ python3Packages.setuptools ];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
pyqt6
|
||||
pyqt6-webengine
|
||||
beautifulsoup4
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ qt6.wrapQtAppsHook ];
|
||||
buildInputs = [
|
||||
qt6.qtbase
|
||||
qt6.qtwayland
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 packaging/flashcard-viewer.desktop $out/share/applications/flashcard-viewer.desktop
|
||||
substituteInPlace $out/share/applications/flashcard-viewer.desktop \
|
||||
--replace-fail "@EXEC@" "flashcard-viewer"
|
||||
install -Dm644 flashcard_viewer/ui/icon.png $out/share/icons/hicolor/512x512/apps/flashcard-viewer.png
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
|
||||
pythonImportsCheck = [ "flashcard_viewer" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Desktop app for studying HTML and React flashcard decks with quizzes and progress tracking";
|
||||
homepage = "https://github.com/Naved124/riffle";
|
||||
changelog = "https://github.com/Naved124/riffle/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.unfreeRedistributable;
|
||||
maintainers = with lib.maintainers; [ naved124 ];
|
||||
mainProgram = "flashcard-viewer";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user