nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 64 lines 1.2 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromCodeberg, 5 ninja, 6 meson, 7 pkg-config, 8 wrapGAppsHook4, 9 glib, 10 desktop-file-utils, 11 appstream-glib, 12 blueprint-compiler, 13 libadwaita, 14 nix-update-script, 15}: 16let 17 version = "2"; 18in 19python3Packages.buildPythonApplication { 20 pname = "nucleus"; 21 inherit version; 22 pyproject = false; 23 24 src = fetchFromCodeberg { 25 owner = "lo-vely"; 26 repo = "nucleus"; 27 tag = "v${version}"; 28 hash = "sha256-VBKeHKmNYB2P3x+C7HOzXHjkuUqR6GWoHihAXxhV0wY="; 29 }; 30 31 nativeBuildInputs = [ 32 meson 33 ninja 34 pkg-config 35 wrapGAppsHook4 36 glib 37 desktop-file-utils 38 appstream-glib 39 blueprint-compiler 40 ]; 41 42 dependencies = with python3Packages; [ 43 pygobject3 44 ]; 45 46 buildInputs = [ 47 libadwaita 48 ]; 49 50 dontWrapGApps = true; 51 makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ]; 52 53 passthru.updateScript = nix-update-script { }; 54 55 meta = { 56 description = "Unofficial GNOME Periodic Table"; 57 homepage = "https://codeberg.org/lo-vely/nucleus"; 58 changelog = "https://codeberg.org/lo-vely/nucleus/releases/tag/v${version}"; 59 license = lib.licenses.gpl3Plus; 60 mainProgram = "nucleus"; 61 platforms = lib.platforms.linux; 62 maintainers = [ lib.maintainers.da157 ]; 63 }; 64}