Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wl-restart: init at 0.2.0 #328635

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions pkgs/by-name/wl/wl-restart/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
scdoc,
nix-update-script,
}:
stdenv.mkDerivation {
pname = "wl-restart";
version = "0.2.0";

src = fetchFromGitHub {
owner = "Ferdi265";
repo = "wl-restart";
rev = "v0.2.0";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rev = "v0.2.0";
rev = "refs/tags/v${finalAttrs.version}";

Copy link
Contributor Author

@0x5a4 0x5a4 Aug 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i feel like this is a bad idea because the hash doesnt get updated
see: #310373

hash = "sha256-pMsYLU9pjN2cgz7FxJJwkDHKJt1mIAuagJSBjrPUMAM=";
};

nativeBuildInputs = [
cmake
scdoc
];

cmakeFlags = [ "-DINSTALL_DOCUMENTATION=ON" ];

passthru.updateScript = nix-update-script { };

meta = {
description = "seamlessly restart your wayland compositor when it crashes";
mainProgram = "wl-restart";
license = lib.licenses.gpl3;
homepage = "https://github.com/Ferdi265/wl-restart";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ _0x5a4 ];
};
}