Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 73 lines 1.4 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 meson, 6 ninja, 7 pkg-config, 8 blueprint-compiler, 9 desktop-file-utils, 10 gtk4, 11 gst_all_1, 12 libsoup_3, 13 libadwaita, 14 wrapGAppsHook4, 15 nix-update-script, 16}: 17 18python3Packages.buildPythonApplication rec { 19 pname = "valuta"; 20 version = "1.3.2"; 21 22 pyproject = false; 23 24 src = fetchFromGitHub { 25 owner = "ideveCore"; 26 repo = "Valuta"; 27 rev = "v${version}"; 28 hash = "sha256-g2x+pqs7dXdTMSxzSU5TeQtE+Q+tdQ93xaMtUVEE5/U="; 29 }; 30 31 nativeBuildInputs = [ 32 meson 33 ninja 34 pkg-config 35 blueprint-compiler 36 desktop-file-utils 37 wrapGAppsHook4 38 ]; 39 40 buildInputs = [ 41 gtk4 42 gst_all_1.gstreamer 43 libsoup_3 44 libadwaita 45 ]; 46 47 propagatedBuildInputs = with python3Packages; [ 48 babel 49 dbus-python 50 pygobject3 51 ]; 52 53 dontWrapGApps = true; 54 55 # Arguments to be passed to `makeWrapper`, only used by buildPython* 56 preFixup = '' 57 makeWrapperArgs+=("''${gappsWrapperArgs[@]}") 58 ''; 59 60 passthru = { 61 updateScript = nix-update-script { }; 62 }; 63 64 meta = with lib; { 65 description = "Simple application for converting currencies, with support for various APIs"; 66 homepage = "https://github.com/ideveCore/Valuta"; 67 license = licenses.gpl3Plus; 68 maintainers = with maintainers; [ arthsmn ]; 69 teams = [ teams.gnome-circle ]; 70 mainProgram = "currencyconverter"; 71 platforms = platforms.linux; 72 }; 73}