-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
2,960 additions
and
990 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ agg | ||
, fetchFromGitHub | ||
, fetchpatch | ||
, Foundation | ||
, freetype | ||
, lib | ||
, lua5_2 | ||
, meson | ||
, ninja | ||
, pcre2 | ||
, pkg-config | ||
, reproc | ||
, SDL2 | ||
, stdenv | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "lite-xl"; | ||
version = "2.0.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "lite-xl"; | ||
repo = "lite-xl"; | ||
rev = "v${version}"; | ||
sha256 = "sha256-+RbmT6H/5Ldhv3qOClxMjCSGMudbkGtkjo2SpGqExao="; | ||
}; | ||
|
||
patches = [ | ||
# Fixes compatibility with Lua5.2, remove patch when PR merged | ||
# https://github.com/lite-xl/lite-xl/pull/435 | ||
(fetchpatch { | ||
name = "0001-replace-unpack-with-table.unpack.patch"; | ||
url = "https://github.com/lite-xl/lite-xl/commit/30ccde896d1ffe37cbd8990e9b8aaef275e18935.patch"; | ||
sha256 = "sha256-IAe3jIyD3OtZtu1V7MtPR4QzFKvU/aV/nLQ4U9nHyIQ="; | ||
}) | ||
# Lets meson fallback to the system reproc if available. | ||
# remove patch when 2.0.2 is proposed. | ||
(fetchpatch { | ||
name = "0002-use-dependency-fallbacks-use-system-reproc-if-available.patch"; | ||
url = "https://github.com/lite-xl/lite-xl/commit/973acb787aacb0164b2f4ae6fe335d250ba80a7b.patch"; | ||
sha256 = "sha256-GmgATsRlj1FePmw3+AoWEMZIo2eujHYewKQCx583qbU="; | ||
}) | ||
]; | ||
|
||
nativeBuildInputs = [ meson ninja pkg-config ]; | ||
|
||
buildInputs = [ | ||
agg | ||
freetype | ||
lua5_2 | ||
pcre2 | ||
reproc | ||
SDL2 | ||
] ++ lib.optionals stdenv.isDarwin [ | ||
Foundation | ||
]; | ||
|
||
meta = with lib; { | ||
description = "A lightweight text editor written in Lua"; | ||
homepage = "https://github.com/lite-xl/lite-xl"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ boppyt ]; | ||
platforms = platforms.unix; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ buildGoPackage, lib, fetchFromGitHub }: | ||
buildGoPackage rec { | ||
pname = "tgswitch"; | ||
version = "0.5.378"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "warrensbox"; | ||
repo = "tgswitch"; | ||
rev = version; | ||
sha256 = "0q2aqh75acbpkmvkws0rl3d5dzq3sisy637c0x6cnc88h34g3n3i"; | ||
}; | ||
|
||
goPackagePath = "github.com/warrensbox/tgswitch"; | ||
|
||
meta = with lib; { | ||
description = "A command line tool to switch between different versions of terragrunt"; | ||
homepage = "https://github.com/warrensbox/tgswitch"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ psibi ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ lib, mkDerivation, fetchurl, autoPatchelfHook, dpkg, glibc, gnome }: | ||
|
||
mkDerivation rec { | ||
pname = "synology-drive"; | ||
subVersion = "12674"; | ||
version = "3.0.1-${subVersion}"; | ||
|
||
src = fetchurl { | ||
url = "https://global.download.synology.com/download/Utility/SynologyDriveClient/${version}/Ubuntu/Installer/x86_64/synology-drive-client-${subVersion}.x86_64.deb"; | ||
sha256 = "1yyv6zgszsym22kf4jvlan7n9lw09fw24fyrh7c8pzbb2029gp8a"; | ||
}; | ||
|
||
nativeBuildInputs = [ autoPatchelfHook dpkg ]; | ||
|
||
buildInputs = [ glibc gnome.nautilus ]; | ||
|
||
unpackPhase = '' | ||
mkdir -p $out | ||
dpkg -x $src $out | ||
''; | ||
|
||
installPhase = '' | ||
# synology-drive executable | ||
cp -av $out/usr/* $out | ||
rm -rf $out/usr | ||
runHook postInstall | ||
''; | ||
|
||
postInstall = '' | ||
substituteInPlace $out/bin/synology-drive --replace /opt $out/opt | ||
''; | ||
|
||
meta = with lib; { | ||
homepage = "https://www.synology.com/"; | ||
description = "Synchronize files between client and Synology NAS."; | ||
longDescription = '' | ||
Drive for PC, the desktop utility of the DSM add-on package. | ||
Drive, allows you to sync and share files owned by you or shared by others between a centralized Synology NAS and multiple client computers. | ||
''; | ||
license = licenses.unfree; | ||
maintainers = with maintainers; [ MoritzBoehme ]; | ||
platforms = [ "x86_64-linux" ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.