mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
syncthing-macos: init at 1.29.2-2
This commit is contained in:
parent
8fcc714596
commit
7507c4643d
1 changed files with 39 additions and 0 deletions
39
pkgs/by-name/sy/syncthing-macos/package.nix
Normal file
39
pkgs/by-name/sy/syncthing-macos/package.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchurl,
|
||||||
|
stdenv,
|
||||||
|
undmg,
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "syncthing-macos";
|
||||||
|
version = "1.29.2-2";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/syncthing/syncthing-macos/releases/download/v${finalAttrs.version}/Syncthing-${finalAttrs.version}.dmg";
|
||||||
|
hash = "sha256-KbUpc2gymxkhkpSvIpy2fF3xAKsDqHHwlfUB8BF8+Sc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ undmg ];
|
||||||
|
|
||||||
|
sourceRoot = "Syncthing.app";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/Applications/${finalAttrs.sourceRoot}
|
||||||
|
cp -R . $out/Applications/${finalAttrs.sourceRoot}
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Official frugal and native macOS Syncthing application bundle";
|
||||||
|
homepage = "https://github.com/syncthing/syncthing-macos";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ Enzime ];
|
||||||
|
hydraPlatforms = [ ]; # no building required
|
||||||
|
platforms = lib.platforms.darwin;
|
||||||
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||||
|
};
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue