lol

cosmic-comp: 1.0.0-alpha.2 -> 1.0.0-alpha.6 (#391787)

authored by

Gaétan Lepage and committed by
GitHub
5e27ae5d fe3ec4e6

+35 -52
+35 -52
pkgs/by-name/co/cosmic-comp/package.nix
··· 3 stdenv, 4 rustPlatform, 5 fetchFromGitHub, 6 - makeBinaryWrapper, 7 - pixman, 8 pkg-config, 9 libinput, 10 - libglvnd, 11 - libxkbcommon, 12 - libgbm, 13 seatd, 14 udev, 15 xwayland, 16 - wayland, 17 - xorg, 18 useXWayland ? true, 19 - systemd, 20 useSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, 21 }: 22 23 - rustPlatform.buildRustPackage rec { 24 pname = "cosmic-comp"; 25 - version = "1.0.0-alpha.2"; 26 27 src = fetchFromGitHub { 28 owner = "pop-os"; 29 repo = "cosmic-comp"; 30 - rev = "epoch-${version}"; 31 - hash = "sha256-IbGMp+4nRg4v5yRvp3ujGx7+nJ6wJmly6dZBXbQAnr8="; 32 }; 33 34 useFetchCargoVendor = true; 35 - cargoHash = "sha256-4ahdQ0lQbG+lifGlsJE0yci4j8pR7tYVsMww9LyYyAA="; 36 37 separateDebugInfo = true; 38 39 nativeBuildInputs = [ 40 - makeBinaryWrapper 41 pkg-config 42 ]; 43 buildInputs = [ 44 - libglvnd 45 libinput 46 - libxkbcommon 47 - libgbm 48 pixman 49 seatd 50 udev 51 - wayland 52 ] ++ lib.optional useSystemd systemd; 53 54 # Only default feature is systemd 55 buildNoDefaultFeatures = !useSystemd; 56 - 57 - # Force linking to libEGL, which is always dlopen()ed, and to 58 - # libwayland-client, which is always dlopen()ed except by the 59 - # obscure winit backend. 60 - RUSTFLAGS = map (a: "-C link-arg=${a}") [ 61 - "-Wl,--push-state,--no-as-needed" 62 - "-lEGL" 63 - "-lwayland-client" 64 - "-Wl,--pop-state" 65 - ]; 66 67 makeFlags = [ 68 - "prefix=$(out)" 69 "CARGO_TARGET_DIR=target/${stdenv.hostPlatform.rust.cargoShortTarget}" 70 ]; 71 72 dontCargoInstall = true; 73 74 - # These libraries are only used by the X11 backend, which will not 75 - # be the common case, so just make them available, don't link them. 76 - postInstall = 77 - '' 78 - wrapProgramArgs=(--prefix LD_LIBRARY_PATH : ${ 79 - lib.makeLibraryPath [ 80 - xorg.libX11 81 - xorg.libXcursor 82 - xorg.libXi 83 - ] 84 - }) 85 - '' 86 - + lib.optionalString useXWayland '' 87 - wrapProgramArgs+=(--prefix PATH : ${lib.makeBinPath [ xwayland ]}) 88 - '' 89 - + '' 90 - wrapProgram $out/bin/cosmic-comp "''${wrapProgramArgs[@]}" 91 - ''; 92 93 - meta = with lib; { 94 homepage = "https://github.com/pop-os/cosmic-comp"; 95 description = "Compositor for the COSMIC Desktop Environment"; 96 mainProgram = "cosmic-comp"; 97 - license = licenses.gpl3Only; 98 - maintainers = with maintainers; [ 99 qyliss 100 nyabinary 101 ]; 102 - platforms = platforms.linux; 103 }; 104 - }
··· 3 stdenv, 4 rustPlatform, 5 fetchFromGitHub, 6 + libcosmicAppHook, 7 pkg-config, 8 + libdisplay-info, 9 + libgbm, 10 libinput, 11 + pixman, 12 seatd, 13 udev, 14 + systemd, 15 xwayland, 16 + nix-update-script, 17 + 18 useXWayland ? true, 19 useSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, 20 }: 21 22 + rustPlatform.buildRustPackage (finalAttrs: { 23 pname = "cosmic-comp"; 24 + version = "1.0.0-alpha.6"; 25 26 src = fetchFromGitHub { 27 owner = "pop-os"; 28 repo = "cosmic-comp"; 29 + tag = "epoch-${finalAttrs.version}"; 30 + hash = "sha256-CygtVtzO8JJQv+G3yx/OCCy8BlPqyNqcmf3Mv1gFuT4="; 31 }; 32 33 useFetchCargoVendor = true; 34 + cargoHash = "sha256-bfVsfrxGi0Lq/YRddCVhfqXL8kPGL9p4bqSNPsmjx0o="; 35 36 separateDebugInfo = true; 37 38 nativeBuildInputs = [ 39 + libcosmicAppHook 40 pkg-config 41 ]; 42 + 43 buildInputs = [ 44 + libdisplay-info 45 + libgbm 46 libinput 47 pixman 48 seatd 49 udev 50 ] ++ lib.optional useSystemd systemd; 51 52 # Only default feature is systemd 53 buildNoDefaultFeatures = !useSystemd; 54 55 makeFlags = [ 56 + "prefix=${placeholder "out"}" 57 "CARGO_TARGET_DIR=target/${stdenv.hostPlatform.rust.cargoShortTarget}" 58 ]; 59 60 dontCargoInstall = true; 61 62 + preFixup = lib.optionalString useXWayland '' 63 + libcosmicAppWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ xwayland ]}) 64 + ''; 65 + 66 + passthru.updateScript = nix-update-script { 67 + extraArgs = [ 68 + "--version" 69 + "unstable" 70 + "--version-regex" 71 + "epoch-(.*)" 72 + ]; 73 + }; 74 75 + meta = { 76 homepage = "https://github.com/pop-os/cosmic-comp"; 77 description = "Compositor for the COSMIC Desktop Environment"; 78 mainProgram = "cosmic-comp"; 79 + license = lib.licenses.gpl3Only; 80 + maintainers = with lib.maintainers; [ 81 qyliss 82 nyabinary 83 + HeitorAugustoLN 84 ]; 85 + platforms = lib.platforms.linux; 86 }; 87 + })