wayfire: use finalAttrs pattern and set meta.mainProgram

This commit is contained in:
rewine 2023-08-05 02:17:56 +08:00
parent e9e04eb419
commit 2b8a2792c0
4 changed files with 38 additions and 37 deletions

View File

@ -21,16 +21,16 @@
, xorg
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "wayfire";
version = "0.7.5";
src = fetchFromGitHub {
owner = "WayfireWM";
repo = pname;
rev = "v${version}";
repo = "wayfire";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
sha256 = "sha256-Z+rR9pY244I3i/++XZ4ROIkq3vtzMgcxxHvJNxFD9is=";
hash = "sha256-Z+rR9pY244I3i/++XZ4ROIkq3vtzMgcxxHvJNxFD9is=";
};
nativeBuildInputs = [
@ -40,7 +40,6 @@ stdenv.mkDerivation rec {
wayland-scanner
];
buildInputs = [
wf-config
libdrm
@ -78,11 +77,12 @@ stdenv.mkDerivation rec {
passthru.providedSessions = [ "wayfire" ];
meta = with lib; {
meta = {
homepage = "https://wayfire.org/";
description = "3D Wayland compositor";
license = licenses.mit;
maintainers = with maintainers; [ qyliss wucke13 rewine ];
platforms = platforms.unix;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ qyliss wucke13 rewine ];
platforms = lib.platforms.unix;
mainProgram = "wayfire";
};
}
})

View File

@ -16,16 +16,16 @@
, libxml2
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "wcm";
version = "0.7.5";
src = fetchFromGitHub {
owner = "WayfireWM";
repo = pname;
rev = "v${version}";
repo = "wcm";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
sha256 = "sha256-LJR9JGl49o4O6LARofz3jOeAqseGcmzVhMnhk/aobUU=";
hash = "sha256-LJR9JGl49o4O6LARofz3jOeAqseGcmzVhMnhk/aobUU=";
};
nativeBuildInputs = [
@ -51,11 +51,12 @@ stdenv.mkDerivation rec {
"-Denable_wdisplays=false"
];
meta = with lib; {
meta = {
homepage = "https://github.com/WayfireWM/wcm";
description = "Wayfire Config Manager";
license = licenses.mit;
maintainers = with maintainers; [ qyliss wucke13 rewine ];
platforms = platforms.unix;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ qyliss wucke13 rewine ];
platforms = lib.platforms.unix;
mainProgram = "wcm";
};
}
})

View File

@ -11,15 +11,15 @@
, libxml2
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "wf-config";
version = "0.7.1";
src = fetchFromGitHub {
owner = "WayfireWM";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ADUBvDJcPYEB9ZvaFIgTfemo1WYwiWgCWX/z2yrEPtA=";
repo = "wf-config";
rev = "v${finalAttrs.version}";
hash = "sha256-ADUBvDJcPYEB9ZvaFIgTfemo1WYwiWgCWX/z2yrEPtA=";
};
nativeBuildInputs = [
@ -50,11 +50,11 @@ stdenv.mkDerivation rec {
doCheck = true;
meta = with lib; {
meta = {
homepage = "https://github.com/WayfireWM/wf-config";
description = "Library for managing configuration files, written for Wayfire";
license = licenses.mit;
maintainers = with maintainers; [ qyliss wucke13 rewine ];
platforms = platforms.unix;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ qyliss wucke13 rewine ];
platforms = lib.platforms.unix;
};
}
})

View File

@ -13,16 +13,16 @@
, pulseaudio
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "wf-shell";
version = "0.7.0";
src = fetchFromGitHub {
owner = "WayfireWM";
repo = pname;
rev = "v${version}";
repo = "wf-shell";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
sha256 = "sha256-iQUBuNjbZuf51A69RC6NsMHFZCFRv+d9XZ0HtP6OpOA=";
hash = "sha256-iQUBuNjbZuf51A69RC6NsMHFZCFRv+d9XZ0HtP6OpOA=";
};
nativeBuildInputs = [
@ -43,11 +43,11 @@ stdenv.mkDerivation rec {
mesonFlags = [ "--sysconfdir /etc" ];
meta = with lib; {
meta = {
homepage = "https://github.com/WayfireWM/wf-shell";
description = "GTK3-based panel for Wayfire";
license = licenses.mit;
maintainers = with maintainers; [ qyliss wucke13 rewine ];
platforms = platforms.unix;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ qyliss wucke13 rewine ];
platforms = lib.platforms.unix;
};
}
})