Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 66 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 rustPlatform, 5 fetchFromGitHub, 6 7 just, 8 pkg-config, 9 makeBinaryWrapper, 10 libcosmicAppHook, 11 12 libxkbcommon, 13 openssl, 14 wayland, 15 16 nix-update-script, 17}: 18rustPlatform.buildRustPackage (finalAttrs: { 19 pname = "quick-webapps"; 20 version = "1.0.2"; 21 22 src = fetchFromGitHub { 23 owner = "cosmic-utils"; 24 repo = "web-apps"; 25 tag = finalAttrs.version; 26 hash = "sha256-yd4lALm7eG4NxrvaduZC1SZEE83j/nRsG2ufrfUMJJM="; 27 }; 28 29 cargoHash = "sha256-gg8WCzKbpFT8SRzMxC7ezvv+uN9IpIbGy/yytFC9uaM="; 30 31 nativeBuildInputs = [ 32 just 33 pkg-config 34 libcosmicAppHook 35 ]; 36 37 buildInputs = [ 38 libxkbcommon 39 openssl 40 ]; 41 42 env.VERGEN_GIT_SHA = finalAttrs.src.tag; 43 44 dontUseJustBuild = true; 45 dontUseJustCheck = true; 46 47 justFlags = [ 48 "--set" 49 "prefix" 50 (placeholder "out") 51 "--set" 52 "bin-src" 53 "target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/quick-webapps" 54 ]; 55 56 passthru.updateScript = nix-update-script { }; 57 58 meta = { 59 description = "Web App Manager for the COSMIC desktop"; 60 homepage = "https://github.com/cosmic-utils/web-apps"; 61 license = lib.licenses.gpl3Only; 62 platforms = lib.platforms.linux; 63 maintainers = with lib.maintainers; [ pluiedev ]; 64 mainProgram = "quick-webapps"; 65 }; 66})