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