nagiosPlugins.check_ssl_cert: 2.85.1 -> 2.86.0 (#379244)
[NixPkgs.git] / pkgs / by-name / co / cosmic-workspaces-epoch / package.nix
blobd750cff7e77f7444ad5f46d74fe5982731792a55
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   libxkbcommon,
7   libinput,
8   libglvnd,
9   libgbm,
10   udev,
11   wayland,
14 rustPlatform.buildRustPackage rec {
15   pname = "cosmic-workspaces-epoch";
16   version = "1.0.0-alpha.5.1";
18   src = fetchFromGitHub {
19     owner = "pop-os";
20     repo = "cosmic-workspaces-epoch";
21     rev = "epoch-${version}";
22     hash = "sha256-lAK7DZWwNMr30u6Uopew9O/6FIG6e2SgcdA+cD/K5Ok=";
23   };
25   useFetchCargoVendor = true;
26   cargoHash = "sha256-w1lQdzy2mJ5NfqngvOLqFCxyhWgvIySDDXCCtCCtTjg=";
28   separateDebugInfo = true;
30   nativeBuildInputs = [ pkg-config ];
31   buildInputs = [
32     libxkbcommon
33     libinput
34     libglvnd
35     libgbm
36     udev
37     wayland
38   ];
40   postInstall = ''
41     mkdir -p $out/share/{applications,icons/hicolor/scalable/apps}
42     cp data/*.desktop $out/share/applications/
43     cp data/*.svg $out/share/icons/hicolor/scalable/apps/
44   '';
46   # Force linking to libEGL, which is always dlopen()ed, and to
47   # libwayland-client, which is always dlopen()ed except by the
48   # obscure winit backend.
49   RUSTFLAGS = map (a: "-C link-arg=${a}") [
50     "-Wl,--push-state,--no-as-needed"
51     "-lEGL"
52     "-lwayland-client"
53     "-Wl,--pop-state"
54   ];
56   meta = with lib; {
57     homepage = "https://github.com/pop-os/cosmic-workspaces-epoch";
58     description = "Workspaces Epoch for the COSMIC Desktop Environment";
59     mainProgram = "cosmic-workspaces";
60     license = licenses.gpl3Only;
61     maintainers = with maintainers; [ nyabinary ];
62     platforms = platforms.linux;
63   };