louvre: add update script

cleanup
This commit is contained in:
John Titor 2024-09-12 10:04:46 +05:30
parent 6a65627a05
commit dce85e24f8
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0

View File

@ -19,19 +19,20 @@
, udev
, wayland
, xorgproto
, nix-update-script
}:
stdenv.mkDerivation (self: {
stdenv.mkDerivation (finalAttrs: {
pname = "louvre";
version = "2.9.0-1";
src = fetchFromGitHub {
owner = "CuarzoSoftware";
repo = "Louvre";
rev = "v${self.version}";
rev = "v${finalAttrs.version}";
hash = "sha256-0M1Hl5kF8r4iFflkGBb9CWqwzauSZPVKSRNWZKFZC4U=";
};
sourceRoot = "${self.src.name}/src";
sourceRoot = "${finalAttrs.src.name}/src";
postPatch = ''
substituteInPlace examples/meson.build \
@ -64,6 +65,10 @@ stdenv.mkDerivation (self: {
outputs = [ "out" "dev" ];
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "C++ library for building Wayland compositors";
homepage = "https://github.com/CuarzoSoftware/Louvre";