cosmic-design-demo: refactor (#385355)

authored by Donovan Glover and committed by GitHub 0823e91e 37826841

+14 -24
+14 -24
pkgs/by-name/co/cosmic-design-demo/package.nix
··· 3 3 stdenv, 4 4 fetchFromGitHub, 5 5 rustPlatform, 6 - cmake, 7 6 just, 8 - pkg-config, 7 + libcosmicAppHook, 9 8 expat, 10 - libxkbcommon, 11 9 fontconfig, 12 10 freetype, 13 - wayland, 14 - makeBinaryWrapper, 15 - cosmic-icons, 16 11 }: 17 12 18 - rustPlatform.buildRustPackage rec { 13 + rustPlatform.buildRustPackage { 19 14 pname = "cosmic-design-demo"; 20 - version = "unstable-2024-01-08"; 15 + version = "0-unstable-2024-01-08"; 21 16 22 17 src = fetchFromGitHub { 23 18 owner = "pop-os"; 24 - repo = pname; 19 + repo = "cosmic-design-demo"; 25 20 rev = "d58cfad46f2982982494fce27fb00ad834dc8992"; 26 21 hash = "sha256-nWkiaegSjxgyGlpjXE9vzGjiDORaRCSoZJMDv0jtvaA="; 27 22 }; ··· 30 25 cargoHash = "sha256-czfDtiSEmzmcLfpqv0/8sP8zDAEKh+pkQkGXdd5NskM="; 31 26 32 27 nativeBuildInputs = [ 33 - cmake 34 28 just 35 - pkg-config 36 - makeBinaryWrapper 29 + libcosmicAppHook 37 30 ]; 31 + 38 32 buildInputs = [ 39 - libxkbcommon 40 33 expat 41 34 fontconfig 42 35 freetype 43 - wayland 44 36 ]; 45 37 46 38 dontUseJustBuild = true; 39 + dontUseJustCheck = true; 47 40 48 41 justFlags = [ 49 42 "--unstable" ··· 55 48 "target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-design-demo" 56 49 ]; 57 50 58 - postInstall = '' 59 - wrapProgram "$out/bin/cosmic-design-demo" \ 60 - --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ wayland ]}" \ 61 - --suffix XDG_DATA_DIRS : "${cosmic-icons}/share" 62 - ''; 63 - 64 - meta = with lib; { 51 + meta = { 65 52 homepage = "https://github.com/pop-os/cosmic-design-demo"; 66 53 description = "Design Demo for the COSMIC Desktop Environment"; 67 - license = licenses.mpl20; 68 - maintainers = with maintainers; [ nyabinary ]; 69 - platforms = platforms.linux; 54 + license = lib.licenses.mpl20; 55 + maintainers = with lib.maintainers; [ 56 + nyabinary 57 + HeitorAugustoLN 58 + ]; 59 + platforms = lib.platforms.linux; 70 60 mainProgram = "cosmic-design-demo"; 71 61 }; 72 62 }