diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-01-27 04:17:36 +0100 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-01-27 04:17:36 +0100 |
commit | 43545381393695f722344b085620937fa3367a8a (patch) | |
tree | e2b7bdf1f0d5453341a4619f8a63948c6e6b2f76 /pkgs/by-name/de/deskreen/package.nix | |
parent | 4757f0e68df99bc7177c68dcc7c523e391d213cf (diff) | |
parent | 741c01dfc130418b134d48dfbb68f9462f853e32 (diff) |
Merge branch 'staging-next' into staging
Diffstat (limited to 'pkgs/by-name/de/deskreen/package.nix')
-rw-r--r-- | pkgs/by-name/de/deskreen/package.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/by-name/de/deskreen/package.nix b/pkgs/by-name/de/deskreen/package.nix new file mode 100644 index 0000000000000..746f813f2ea0c --- /dev/null +++ b/pkgs/by-name/de/deskreen/package.nix @@ -0,0 +1,44 @@ +{ lib +, stdenvNoCC +, fetchurl +, appimageTools +}: + +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; + }; +}) |