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 3 stdenv, 4 4 rustPlatform, 5 5 fetchFromGitHub, 6 - makeBinaryWrapper, 7 - pixman, 6 + libcosmicAppHook, 8 7 pkg-config, 8 + libdisplay-info, 9 + libgbm, 9 10 libinput, 10 - libglvnd, 11 - libxkbcommon, 12 - libgbm, 11 + pixman, 13 12 seatd, 14 13 udev, 14 + systemd, 15 15 xwayland, 16 - wayland, 17 - xorg, 16 + nix-update-script, 17 + 18 18 useXWayland ? true, 19 - systemd, 20 19 useSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, 21 20 }: 22 21 23 - rustPlatform.buildRustPackage rec { 22 + rustPlatform.buildRustPackage (finalAttrs: { 24 23 pname = "cosmic-comp"; 25 - version = "1.0.0-alpha.2"; 24 + version = "1.0.0-alpha.6"; 26 25 27 26 src = fetchFromGitHub { 28 27 owner = "pop-os"; 29 28 repo = "cosmic-comp"; 30 - rev = "epoch-${version}"; 31 - hash = "sha256-IbGMp+4nRg4v5yRvp3ujGx7+nJ6wJmly6dZBXbQAnr8="; 29 + tag = "epoch-${finalAttrs.version}"; 30 + hash = "sha256-CygtVtzO8JJQv+G3yx/OCCy8BlPqyNqcmf3Mv1gFuT4="; 32 31 }; 33 32 34 33 useFetchCargoVendor = true; 35 - cargoHash = "sha256-4ahdQ0lQbG+lifGlsJE0yci4j8pR7tYVsMww9LyYyAA="; 34 + cargoHash = "sha256-bfVsfrxGi0Lq/YRddCVhfqXL8kPGL9p4bqSNPsmjx0o="; 36 35 37 36 separateDebugInfo = true; 38 37 39 38 nativeBuildInputs = [ 40 - makeBinaryWrapper 39 + libcosmicAppHook 41 40 pkg-config 42 41 ]; 42 + 43 43 buildInputs = [ 44 - libglvnd 44 + libdisplay-info 45 + libgbm 45 46 libinput 46 - libxkbcommon 47 - libgbm 48 47 pixman 49 48 seatd 50 49 udev 51 - wayland 52 50 ] ++ lib.optional useSystemd systemd; 53 51 54 52 # Only default feature is systemd 55 53 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 54 67 55 makeFlags = [ 68 - "prefix=$(out)" 56 + "prefix=${placeholder "out"}" 69 57 "CARGO_TARGET_DIR=target/${stdenv.hostPlatform.rust.cargoShortTarget}" 70 58 ]; 71 59 72 60 dontCargoInstall = true; 73 61 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 - ''; 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 + }; 92 74 93 - meta = with lib; { 75 + meta = { 94 76 homepage = "https://github.com/pop-os/cosmic-comp"; 95 77 description = "Compositor for the COSMIC Desktop Environment"; 96 78 mainProgram = "cosmic-comp"; 97 - license = licenses.gpl3Only; 98 - maintainers = with maintainers; [ 79 + license = lib.licenses.gpl3Only; 80 + maintainers = with lib.maintainers; [ 99 81 qyliss 100 82 nyabinary 83 + HeitorAugustoLN 101 84 ]; 102 - platforms = platforms.linux; 85 + platforms = lib.platforms.linux; 103 86 }; 104 - } 87 + })