cosmic-ext-calculator: init at 0.1.1 (#379412)

authored by

Gaétan Lepage and committed by
GitHub
368a1597 9b8e6835

+57
+57
pkgs/by-name/co/cosmic-ext-calculator/package.nix
··· 1 + # SPDX-License-Identifier: MIT 2 + # SPDX-FileCopyrightText: Lily Foster <lily@lily.flowers> 3 + # Portions of this code are adapted from nixos-cosmic 4 + # https://github.com/lilyinstarlight/nixos-cosmic 5 + { 6 + lib, 7 + stdenv, 8 + rustPlatform, 9 + fetchFromGitHub, 10 + libcosmicAppHook, 11 + just, 12 + nix-update-script, 13 + }: 14 + rustPlatform.buildRustPackage rec { 15 + pname = "cosmic-ext-calculator"; 16 + version = "0.1.1"; 17 + 18 + src = fetchFromGitHub { 19 + owner = "cosmic-utils"; 20 + repo = "calculator"; 21 + tag = version; 22 + hash = "sha256-UO3JKPsztptNEFAxolRui9FxtCsTRgpXhHH242i9b6E="; 23 + }; 24 + 25 + useFetchCargoVendor = true; 26 + cargoHash = "sha256-a4IOmCWKX8RR8xeKS6wdsTlNyTr91B93bYMDx/+/+04="; 27 + 28 + nativeBuildInputs = [ 29 + libcosmicAppHook 30 + just 31 + ]; 32 + 33 + dontUseJustBuild = true; 34 + dontUseJustCheck = true; 35 + 36 + justFlags = [ 37 + "--set" 38 + "prefix" 39 + (placeholder "out") 40 + "--set" 41 + "bin-src" 42 + "target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-ext-calculator" 43 + ]; 44 + 45 + passthru.updateScript = nix-update-script { }; 46 + 47 + meta = { 48 + changelog = "https://github.com/cosmic-utils/calculator/releases/tag/${version}"; 49 + description = "Calculator for the COSMIC Desktop Environment"; 50 + homepage = "https://github.com/cosmic-utils/calculator"; 51 + license = lib.licenses.gpl3Only; 52 + mainProgram = "cosmic-ext-calculator"; 53 + maintainers = with lib.maintainers; [ HeitorAugustoLN ]; 54 + platforms = lib.platforms.linux; 55 + sourceProvenance = [ lib.sourceTypes.fromSource ]; 56 + }; 57 + }