From 9a0d8f1d016160f817523f232449f35ee45756c1 Mon Sep 17 00:00:00 2001 From: leo248 Date: Mon, 22 Jan 2024 13:44:50 +0100 Subject: [PATCH] deskreen: init at 2.0.4 Update pkgs/by-name/de/deskreen/package.nix Co-authored-by: Anderson Torres Update pkgs/by-name/de/deskreen/package.nix Co-authored-by: Anderson Torres Update pkgs/by-name/de/deskreen/package.nix --- pkgs/by-name/de/deskreen/package.nix | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/de/deskreen/package.nix diff --git a/pkgs/by-name/de/deskreen/package.nix b/pkgs/by-name/de/deskreen/package.nix new file mode 100644 index 000000000000..7cff6ded560d --- /dev/null +++ b/pkgs/by-name/de/deskreen/package.nix @@ -0,0 +1,43 @@ +{ lib, + fetchurl, + appimageTools, + stdenvNoCC }: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "deskreen"; + version = "2.0.4"; + + src = fetchurl { + url = "https://github.com/pavlobu/deskreen/releases/download/v${finalAttrs.version}/Deskreen-${finalAttrs.version}.AppImage"; + hash = "sha256-0jI/mbXaXanY6ay2zn+dPWGvsqWRcF8aYHRvfGVsObE="; + }; + deskreenUnwrapped = appimageTools.wrapType2 { + name = "deskreen"; + src = finalAttrs.src; + }; + + buildInputs = [ + finalAttrs.deskreenUnwrapped + ]; + + dontUnpack = true; + dontBuild = true; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + ln -s ${finalAttrs.deskreenUnwrapped}/bin/deskreen $out/bin/deskreen + + runHook postInstall + ''; + + meta = { + description = "Turn any device into a secondary screen for your computer"; + homepage = "https://deskreen.com"; + license = lib.licenses.agpl3; + mainProgram = "deskreen"; + maintainers = with lib.maintainers; [ leo248 drupol ]; + platforms = lib.platforms.linux; + }; +})