diff options
Diffstat (limited to 'pkgs/by-name/cl')
-rw-r--r-- | pkgs/by-name/cl/clairvoyant/package.nix | 47 | ||||
-rw-r--r-- | pkgs/by-name/cl/clamtk/package.nix | 77 | ||||
-rw-r--r-- | pkgs/by-name/cl/clangbuildanalyzer/package.nix | 25 | ||||
-rw-r--r-- | pkgs/by-name/cl/clarity-city/package.nix | 33 | ||||
-rw-r--r-- | pkgs/by-name/cl/clash-meta/package.nix | 13 | ||||
-rw-r--r-- | pkgs/by-name/cl/clash-nyanpasu/package.nix | 23 | ||||
-rw-r--r-- | pkgs/by-name/cl/clash-verge-rev/package.nix | 19 | ||||
-rw-r--r-- | pkgs/by-name/cl/clash-verge/package.nix | 66 | ||||
-rw-r--r-- | pkgs/by-name/cl/clatd/package.nix | 66 | ||||
-rw-r--r-- | pkgs/by-name/cl/cld2/package.nix | 50 | ||||
-rw-r--r-- | pkgs/by-name/cl/cli11/package.nix | 40 | ||||
-rw-r--r-- | pkgs/by-name/cl/clipcat/package.nix | 58 | ||||
-rw-r--r-- | pkgs/by-name/cl/clipse/package.nix | 26 | ||||
-rw-r--r-- | pkgs/by-name/cl/cljfmt/package.nix | 44 | ||||
-rw-r--r-- | pkgs/by-name/cl/cloudlogoffline/package.nix | 69 | ||||
-rw-r--r-- | pkgs/by-name/cl/cloudrecon/package.nix | 32 | ||||
-rw-r--r-- | pkgs/by-name/cl/clzip/package.nix | 7 |
17 files changed, 692 insertions, 3 deletions
diff --git a/pkgs/by-name/cl/clairvoyant/package.nix b/pkgs/by-name/cl/clairvoyant/package.nix new file mode 100644 index 0000000000000..21db94bec6a90 --- /dev/null +++ b/pkgs/by-name/cl/clairvoyant/package.nix @@ -0,0 +1,47 @@ +{ lib +, fetchFromGitHub +, gtk4 +, libadwaita +, libportal +, meson +, ninja +, pkg-config +, stdenv +, vala +, wrapGAppsHook4 +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "clairvoyant"; + version = "3.1.7"; + + src = fetchFromGitHub { + owner = "cassidyjames"; + repo = "clairvoyant"; + rev = finalAttrs.version; + hash = "sha256-p9Lgs5z5oRuMQYRKzWp+aQDi0FnxvbQGLZpBigolHUw="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + vala + wrapGAppsHook4 + ]; + + buildInputs = [ + gtk4 + libadwaita + libportal + ]; + + meta = with lib; { + changelog = "https://github.com/cassidyjames/clairvoyant/releases/tag/${finalAttrs.version}"; + description = "Ask questions, get psychic answers"; + homepage = "https://github.com/cassidyjames/clairvoyant"; + license = licenses.gpl3Plus; + mainProgram = "com.github.cassidyjames.clairvoyant"; + maintainers = with maintainers; [ michaelgrahamevans ]; + }; +}) diff --git a/pkgs/by-name/cl/clamtk/package.nix b/pkgs/by-name/cl/clamtk/package.nix new file mode 100644 index 0000000000000..67c82e52a400a --- /dev/null +++ b/pkgs/by-name/cl/clamtk/package.nix @@ -0,0 +1,77 @@ +{ lib +, perlPackages +, fetchFromGitHub +, wrapGAppsHook3 +, gobject-introspection +, perl +, clamav +}: + +perlPackages.buildPerlPackage rec { + pname = "clamtk"; + version = "6.18"; + + src = fetchFromGitHub { + owner = "dave-theunsub"; + repo = "clamtk"; + rev = "v${version}"; + hash = "sha256-ClBsBXbGj67zgrkA9EjgK7s3OmXOJA+xV5xLGOcMsbI="; + }; + + nativeBuildInputs = [ wrapGAppsHook3 gobject-introspection ]; + buildInputs = [ perl clamav ]; + propagatedBuildInputs = with perlPackages; [ Glib LWP LWPProtocolHttps TextCSV JSON LocaleGettext Gtk3 ]; + + preConfigure = "touch Makefile.PL"; + # no tests implemented + doCheck = false; + outputs = [ "out" "man" ]; + + postPatch = '' + # Set correct nix paths in perl scripts + substituteInPlace lib/App.pm \ + --replace /usr/bin/freshclam ${lib.getBin clamav}/bin/freshclam \ + --replace /usr/bin/sigtool ${lib.getBin clamav}/bin/sigtool \ + --replace /usr/bin/clamscan ${lib.getBin clamav}/bin/clamscan \ + --replace /usr/bin/clamdscan ${lib.getBin clamav}/bin/clamdscan \ + --replace /usr/share/pixmaps $out/share/pixmaps + + # We want to catch the crontab wrapper on NixOS and the + # System crontab on non-NixOS so we don't give a full path. + substituteInPlace lib/Schedule.pm \ + --replace "( -e '/usr/bin/crontab' )" "(1)" \ + --replace /usr/bin/crontab crontab + ''; + + installPhase = '' + runHook preInstall + + install -Dm755 clamtk -t $out/bin + install -Dm444 lib/*.pm -t $out/lib/perl5/site_perl/ClamTk + install -Dm444 clamtk.desktop -t $out/share/applications + install -Dm444 images/* -t $out/share/pixmaps + install -Dm444 clamtk.1.gz -t $out/share/man/man1 + install -Dm444 {CHANGES,LICENSE,*.md} -t $out/share/doc/clamtk + + runHook postInstall + ''; + + preFixup = '' + gappsWrapperArgs+=( + --prefix PERL5LIB : $PERL5LIB + --set GI_TYPELIB_PATH "$GI_TYPELIB_PATH" + ) + ''; + + meta = with lib; { + description = '' + Easy to use, lightweight front-end for ClamAV (Clam Antivirus). + ''; + mainProgram = "clamtk"; + license = licenses.gpl1Plus; + homepage = "https://github.com/dave-theunsub/clamtk"; + platforms = platforms.linux; + maintainers = with maintainers; [ chewblacka ShamrockLee ]; + }; + +} diff --git a/pkgs/by-name/cl/clangbuildanalyzer/package.nix b/pkgs/by-name/cl/clangbuildanalyzer/package.nix new file mode 100644 index 0000000000000..21b67fcf44c41 --- /dev/null +++ b/pkgs/by-name/cl/clangbuildanalyzer/package.nix @@ -0,0 +1,25 @@ +{ stdenv, lib, cmake, fetchFromGitHub }: +stdenv.mkDerivation (finalAttrs: { + pname = "clangbuildanalyzer"; + version = "1.5.0"; + + src = fetchFromGitHub { + owner = "aras-p"; + repo = "ClangBuildAnalyzer"; + rev = "v${finalAttrs.version}"; + sha256 = "sha256-kmgdk634zM0W0OoRoP/RzepArSipa5bNqdVgdZO9gxo="; + }; + + nativeBuildInputs = [ + cmake + ]; + + meta = { + description = "Tool for analyzing Clang's -ftime-trace files"; + homepage = "https://github.com/aras-p/ClangBuildAnalyzer"; + maintainers = with lib.maintainers; [ lf- ]; + license = lib.licenses.unlicense; + platforms = lib.platforms.unix; + mainProgram = "ClangBuildAnalyzer"; + }; +}) diff --git a/pkgs/by-name/cl/clarity-city/package.nix b/pkgs/by-name/cl/clarity-city/package.nix new file mode 100644 index 0000000000000..3d3fc445d7ad6 --- /dev/null +++ b/pkgs/by-name/cl/clarity-city/package.nix @@ -0,0 +1,33 @@ +{ lib, stdenvNoCC, fetchFromGitHub }: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "clarity-city"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "vmware"; + repo = "clarity-city"; + rev = "v${finalAttrs.version}"; + hash = "sha256-1POSdd2ICnyNNmGadIujezNK8qvARD0kkLR4yWjs5kA="; + }; + + installPhase = '' + runHook preInstall + + install -Dm644 TrueType/*.ttf -t $out/share/fonts/truetype + install -Dm644 OpenType/*.otf -t $out/share/fonts/opentype + install -Dm644 Webfonts/EOT/*.eot -t $out/share/fonts/eot + install -Dm644 Webfonts/WOFF/*.woff -t $out/share/fonts/woff + install -Dm644 Webfonts/WOFF2/*.woff2 -t $out/share/fonts/woff2 + + runHook postInstall + ''; + + meta = with lib; { + description = "An open source sans-serif typeface"; + homepage = "https://github.com/vmware/clarity-city"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ sagikazarmark ]; + }; +}) diff --git a/pkgs/by-name/cl/clash-meta/package.nix b/pkgs/by-name/cl/clash-meta/package.nix new file mode 100644 index 0000000000000..552a8729e861d --- /dev/null +++ b/pkgs/by-name/cl/clash-meta/package.nix @@ -0,0 +1,13 @@ +{ mihomo }: + +mihomo.overrideAttrs (finalAttrs: previousAttrs: { + pname = "clash-meta"; + + postInstall = '' + mv $out/bin/${previousAttrs.meta.mainProgram} $out/bin/${finalAttrs.meta.mainProgram} + ''; + + meta = previousAttrs.meta // { + mainProgram = "clash-meta"; + }; +}) diff --git a/pkgs/by-name/cl/clash-nyanpasu/package.nix b/pkgs/by-name/cl/clash-nyanpasu/package.nix new file mode 100644 index 0000000000000..90da8892b094c --- /dev/null +++ b/pkgs/by-name/cl/clash-nyanpasu/package.nix @@ -0,0 +1,23 @@ +{ lib +, clash-verge +, mihomo +, fetchurl +}: + +(clash-verge.override { + clash-meta = mihomo; +}).overrideAttrs (old: rec { + pname = "clash-nyanpasu"; + version = "1.4.5"; + + src = fetchurl { + url = "https://github.com/keiko233/clash-nyanpasu/releases/download/v${version}/clash-nyanpasu_${version}_amd64.deb"; + hash = "sha256-cxaq7Rndf0ytEaqc7CGQix5SOAdsTOoTj1Jlhjr5wEA="; + }; + + meta = old.meta // (with lib; { + homepage = "https://github.com/keiko233/clash-nyanpasu"; + maintainers = with maintainers; [ Guanran928 ]; + mainProgram = "clash-nyanpasu"; + }); +}) diff --git a/pkgs/by-name/cl/clash-verge-rev/package.nix b/pkgs/by-name/cl/clash-verge-rev/package.nix new file mode 100644 index 0000000000000..8fc885c11ad9d --- /dev/null +++ b/pkgs/by-name/cl/clash-verge-rev/package.nix @@ -0,0 +1,19 @@ +{ lib +, clash-verge +, fetchurl +}: + +clash-verge.overrideAttrs (old: rec { + pname = "clash-verge-rev"; + version = "1.6.1"; + + src = fetchurl { + url = "https://github.com/clash-verge-rev/clash-verge-rev/releases/download/v${version}/clash-verge_${version}_amd64.deb"; + hash = "sha256-V6W7IJFa8UrbPWPS2tReecZ41oYvAqV4q0NBkkhUHbQ="; + }; + + meta = old.meta // (with lib; { + homepage = "https://github.com/clash-verge-rev/clash-verge-rev"; + maintainers = with maintainers; [ Guanran928 ]; + }); +}) diff --git a/pkgs/by-name/cl/clash-verge/package.nix b/pkgs/by-name/cl/clash-verge/package.nix new file mode 100644 index 0000000000000..83318a36f3f69 --- /dev/null +++ b/pkgs/by-name/cl/clash-verge/package.nix @@ -0,0 +1,66 @@ +{ lib +, stdenv +, fetchurl +, dpkg +, wrapGAppsHook3 +, autoPatchelfHook +, clash-meta +, openssl +, webkitgtk +, udev +, libayatana-appindicator +, nix-update-script +}: + +stdenv.mkDerivation rec { + pname = "clash-verge"; + version = "1.3.8"; + + src = fetchurl { + url = "https://github.com/zzzgydi/clash-verge/releases/download/v${version}/clash-verge_${version}_amd64.deb"; + hash = "sha256-kOju4yaa+EKzFWDrk0iSJVoWkQMBjQG3hKLfAsqlsy8="; + }; + + nativeBuildInputs = [ + dpkg + wrapGAppsHook3 + autoPatchelfHook + ]; + + buildInputs = [ + openssl + webkitgtk + stdenv.cc.cc + ]; + + runtimeDependencies = [ + (lib.getLib udev) + libayatana-appindicator + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + mv usr/* $out + + runHook postInstall + ''; + + postFixup = '' + rm -f $out/bin/clash + ln -sf ${lib.getExe clash-meta} $out/bin/${clash-meta.meta.mainProgram} + ''; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + description = "A Clash GUI based on tauri"; + homepage = "https://github.com/zzzgydi/clash-verge"; + platforms = [ "x86_64-linux" ]; + license = licenses.gpl3Plus; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + maintainers = with maintainers; [ zendo ]; + mainProgram = "clash-verge"; + }; +} diff --git a/pkgs/by-name/cl/clatd/package.nix b/pkgs/by-name/cl/clatd/package.nix new file mode 100644 index 0000000000000..f18ab3b036cea --- /dev/null +++ b/pkgs/by-name/cl/clatd/package.nix @@ -0,0 +1,66 @@ +{ lib +, stdenv +, fetchFromGitHub +, makeWrapper +, perl +, perlPackages +, tayga +, iproute2 +, iptables +, nixosTests +}: + +stdenv.mkDerivation rec { + pname = "clatd"; + version = "1.6"; + + src = fetchFromGitHub { + owner = "toreanderson"; + repo = "clatd"; + rev = "v${version}"; + hash = "sha256-ZUGWQTXXgATy539NQxkZSvQA7HIWkIPsw1NJrz0xKEg="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + makeWrapper + perl # for pod2man + ]; + + buildInputs = with perlPackages; [ + perl + NetIP + NetDNS + ]; + + makeFlags = [ "PREFIX=$(out)" ]; + + preBuild = '' + mkdir -p $out/{sbin,share/man/man8} + ''; + + postFixup = '' + patchShebangs $out/bin/clatd + wrapProgram $out/bin/clatd \ + --set PERL5LIB $PERL5LIB \ + --prefix PATH : ${ + lib.makeBinPath [ + tayga + iproute2 + iptables + ] + } + ''; + + passthru.tests.clatd = nixosTests.clatd; + + meta = with lib; { + description = "A 464XLAT CLAT implementation for Linux"; + homepage = "https://github.com/toreanderson/clatd"; + license = licenses.mit; + maintainers = with maintainers; [ jmbaur ]; + mainProgram = "clatd"; + platforms = platforms.linux; + }; +} diff --git a/pkgs/by-name/cl/cld2/package.nix b/pkgs/by-name/cl/cld2/package.nix new file mode 100644 index 0000000000000..bf28b160f2bab --- /dev/null +++ b/pkgs/by-name/cl/cld2/package.nix @@ -0,0 +1,50 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, fetchpatch +}: + +stdenv.mkDerivation { + pname = "cld2"; + version = "unstable-2015-08-21"; + + src = fetchFromGitHub { + owner = "CLD2Owners"; + repo = "cld2"; + rev = "b56fa78a2fe44ac2851bae5bf4f4693a0644da7b"; + hash = "sha256-YhXs45IbriKWKULguZM4DgfV/Fzr73VHxA1pFTXCyv8="; + }; + + patches = [ + (fetchpatch { + name = "add-cmakelists.txt"; + url = "https://github.com/CLD2Owners/cld2/pull/65/commits/9cfac02c2ac7802ab7079560b38a474473c45f51.patch"; + hash = "sha256-uOjmUk8kMFl+wED44ErXoLRyblhgDwFx9K1Wj65Omh8="; + }) + ]; + + nativeBuildInputs = [ cmake ]; + + meta = with lib; { + homepage = "https://github.com/CLD2Owners/cld2"; + description = "Compact Language Detector 2"; + longDescription = '' + CLD2 probabilistically detects over 80 languages in Unicode UTF-8 text, + either plain text or HTML/XML. Legacy encodings must be converted to valid + UTF-8 by the caller. For mixed-language input, CLD2 returns the top three + languages found and their approximate percentages of the total text bytes + (e.g. 80% English and 20% French out of 1000 bytes of text means about 800 + bytes of English and 200 bytes of French). Optionally, it also returns a + vector of text spans with the language of each identified. This may be + useful for applying different spelling-correction dictionaries or + different machine translation requests to each span. The design target is + web pages of at least 200 characters (about two sentences); CLD2 is not + designed to do well on very short text, lists of proper names, part + numbers, etc. + ''; + license = licenses.asl20; + maintainers = with maintainers; [ chvp ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/by-name/cl/cli11/package.nix b/pkgs/by-name/cl/cli11/package.nix new file mode 100644 index 0000000000000..d88470fa4d510 --- /dev/null +++ b/pkgs/by-name/cl/cli11/package.nix @@ -0,0 +1,40 @@ +{ + lib, + stdenv, + fetchFromGitHub, + boost, + catch2, + cmake, + python3, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "cli11"; + version = "2.3.2"; + + src = fetchFromGitHub { + owner = "CLIUtils"; + repo = "CLI11"; + rev = "v${finalAttrs.version}"; + sha256 = "sha256-x3/kBlf5LdzkTO4NYOKanZBfcU4oK+fJw9L7cf88LsY="; + }; + + buildInputs = [ catch2 ]; + nativeBuildInputs = [ cmake ]; + + nativeCheckInputs = [ + boost + python3 + ]; + + doCheck = true; + strictDeps = true; + + meta = with lib; { + description = "Command line parser for C++11"; + homepage = "https://github.com/CLIUtils/CLI11"; + platforms = platforms.unix; + maintainers = with maintainers; [ ]; + license = licenses.bsd3; + }; +}) diff --git a/pkgs/by-name/cl/clipcat/package.nix b/pkgs/by-name/cl/clipcat/package.nix new file mode 100644 index 0000000000000..68e6744bd1752 --- /dev/null +++ b/pkgs/by-name/cl/clipcat/package.nix @@ -0,0 +1,58 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, protobuf +, installShellFiles +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "clipcat"; + version = "0.17.0"; + + src = fetchFromGitHub { + owner = "xrelkd"; + repo = pname; + rev = "v${version}"; + hash = "sha256-e95h8YBVLcy9vubdJpfmeystT2Qw0Y8kap9IbTJW+s8="; + }; + + cargoHash = "sha256-+73vnGcdCDRMrav/Pi4Z37IlbArJ/SlYishz9KhF4x0="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Cocoa + darwin.apple_sdk.frameworks.Security + darwin.apple_sdk.frameworks.SystemConfiguration + ]; + + nativeBuildInputs = [ + protobuf + + installShellFiles + ]; + + checkFlags = [ + # Some test cases interact with X11, skip them + "--skip=test_x11_clipboard" + "--skip=test_x11_primary" + ]; + + postInstall = '' + for cmd in clipcatd clipcatctl clipcat-menu clipcat-notify; do + installShellCompletion --cmd $cmd \ + --bash <($out/bin/$cmd completions bash) \ + --fish <($out/bin/$cmd completions fish) \ + --zsh <($out/bin/$cmd completions zsh) + done + ''; + + meta = with lib; { + description = "Clipboard Manager written in Rust Programming Language"; + homepage = "https://github.com/xrelkd/clipcat"; + license = licenses.gpl3Only; + platforms = platforms.linux ++ platforms.darwin; + maintainers = with maintainers; [ xrelkd ]; + mainProgram = "clipcatd"; + }; +} diff --git a/pkgs/by-name/cl/clipse/package.nix b/pkgs/by-name/cl/clipse/package.nix new file mode 100644 index 0000000000000..e1cef9cfae547 --- /dev/null +++ b/pkgs/by-name/cl/clipse/package.nix @@ -0,0 +1,26 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "clipse"; + version = "0.0.71"; + + src = fetchFromGitHub { + owner = "savedra1"; + repo = "clipse"; + rev = "v${version}"; + hash = "sha256-88GuYGJO5AgWae6LyMO/TpGqtk2yS7pDPS0MkgmJUQ4="; + }; + + vendorHash = "sha256-GIUEx4h3xvLySjBAQKajby2cdH8ioHkv8aPskHN0V+w="; + + meta = { + description = "Useful clipboard manager TUI for Unix"; + homepage = "https://github.com/savedra1/clipse"; + license = lib.licenses.mit; + mainProgram = "clipse"; + maintainers = [ lib.maintainers.savedra1 ]; + }; +} diff --git a/pkgs/by-name/cl/cljfmt/package.nix b/pkgs/by-name/cl/cljfmt/package.nix new file mode 100644 index 0000000000000..22c7760e13448 --- /dev/null +++ b/pkgs/by-name/cl/cljfmt/package.nix @@ -0,0 +1,44 @@ +{ lib +, buildGraalvmNativeImage +, fetchurl +, nix-update-script +, testers +, cljfmt +}: + +buildGraalvmNativeImage rec { + pname = "cljfmt"; + version = "0.12.0"; + + src = fetchurl { + url = "https://github.com/weavejester/${pname}/releases/download/${version}/${pname}-${version}-standalone.jar"; + sha256 = "sha256-JdrMsRmTT8U8RZDI2SnQxM5WGMpo1pL2CQ5BqLxcf5M="; + }; + + extraNativeImageBuildArgs = [ + "-H:+ReportExceptionStackTraces" + "-H:Log=registerResource:" + "--initialize-at-build-time" + "--diagnostics-mode" + "--report-unsupported-elements-at-runtime" + "--no-fallback" + ]; + + passthru.updateScript = nix-update-script { }; + + passthru.tests.version = testers.testVersion { + inherit version; + package = cljfmt; + command = "cljfmt --version"; + }; + + meta = with lib; { + mainProgram = "cljfmt"; + description = "A tool for formatting Clojure code"; + homepage = "https://github.com/weavejester/cljfmt"; + sourceProvenance = with sourceTypes; [ binaryBytecode ]; + license = licenses.epl10; + changelog = "https://github.com/weavejester/cljfmt/blob/${version}/CHANGELOG.md"; + maintainers = with maintainers; [ sg-qwt ]; + }; +} diff --git a/pkgs/by-name/cl/cloudlogoffline/package.nix b/pkgs/by-name/cl/cloudlogoffline/package.nix new file mode 100644 index 0000000000000..cc945302bf06d --- /dev/null +++ b/pkgs/by-name/cl/cloudlogoffline/package.nix @@ -0,0 +1,69 @@ +{ lib +, stdenv +, fetchFromGitHub +, qt5 +, makeDesktopItem +, copyDesktopItems +}: +stdenv.mkDerivation (self: { + pname = "cloudlogoffline"; + version = "1.1.4"; + rev = "185f294ec36d7ebe40e37d70148b15f58d60bf0d"; + hash = "sha256-UEi7q3NbTgkg4tSjiksEO05YE4yjRul4qB9hFPswnK0="; + + src = fetchFromGitHub { + inherit (self) rev hash; + owner = "myzinsky"; + repo = "cloudLogOffline"; + }; + + nativeBuildInputs = [ + qt5.qmake + qt5.wrapQtAppsHook + ] + ++ lib.optionals (!stdenv.isDarwin) [ + copyDesktopItems + ]; + + buildInputs = [ + qt5.qtbase + qt5.qtgraphicaleffects + qt5.qtlocation + qt5.qtpositioning + qt5.qtquickcontrols2 + qt5.qtsvg + ]; + + postPatch = let + targetDir = if stdenv.isDarwin then "Applications" else "bin"; + in '' + substituteInPlace CloudLogOffline.pro \ + --replace 'target.path = /opt/$''${TARGET}/bin' "target.path = $out/${targetDir}" + ''; + + postInstall = lib.optionalString (!stdenv.isDarwin) '' + install -d $out/share/pixmaps + install -m644 images/logo_circle.svg $out/share/pixmaps/cloudlogoffline.svg + ''; + + desktopItems = lib.optionals (!stdenv.isDarwin) [ + (makeDesktopItem { + name = "cloudlogoffline"; + desktopName = "CloudLogOffline"; + exec = "CloudLogOffline"; + icon = "cloudlogoffline"; + comment = self.meta.description; + genericName = "Ham radio contact logbook"; + categories = [ "Network" "Utility" "HamRadio" ]; + }) + ]; + + meta = { + description = "Offline frontend for Cloudlog"; + homepage = "https://github.com/myzinsky/cloudLogOffline"; + license = [ lib.licenses.lgpl3 ]; + mainProgram = "CloudLogOffline"; + maintainers = [ lib.maintainers.dblsaiko ]; + platforms = lib.platforms.unix; + }; +}) diff --git a/pkgs/by-name/cl/cloudrecon/package.nix b/pkgs/by-name/cl/cloudrecon/package.nix new file mode 100644 index 0000000000000..45b50ffcaed8f --- /dev/null +++ b/pkgs/by-name/cl/cloudrecon/package.nix @@ -0,0 +1,32 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "cloudrecon"; + version = "1.0.4"; + + src = fetchFromGitHub { + owner = "g0ldencybersec"; + repo = "CloudRecon"; + rev = "refs/tags/v${version}"; + hash = "sha256-SslHkwoMelvszrQZvNX28EokBgwnPDBbTUBA9jdJPro="; + }; + + vendorHash = "sha256-hLEmRq7Iw0hHEAla0Ehwk1EfmpBv6ddBuYtq12XdhVc="; + + ldflags = [ + "-s" + "-w" + ]; + + meta = with lib; { + description = "Tool to find assets from certificates"; + homepage = "https://github.com/g0ldencybersec/CloudRecon"; + changelog = "https://github.com/g0ldencybersec/CloudRecon/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + mainProgram = "cloudrecon"; + }; +} diff --git a/pkgs/by-name/cl/clzip/package.nix b/pkgs/by-name/cl/clzip/package.nix index 84f485d39891a..d2e17c5e14a04 100644 --- a/pkgs/by-name/cl/clzip/package.nix +++ b/pkgs/by-name/cl/clzip/package.nix @@ -5,18 +5,19 @@ stdenv.mkDerivation (finalAttrs: { pname = "clzip"; - version = "1.13"; + version = "1.14"; src = fetchurl { url = "mirror://savannah/lzip/clzip/clzip-${finalAttrs.version}.tar.gz"; - hash = "sha256-esn79QNr9Q+wtqIOhNIpPLDSTUBE6vM8vpdgu55/6no="; + hash = "sha256-9j/hJFuDL+B/9nnpubhofpN5q2E6Jr+wrKN1TIsWLXM="; }; meta = with lib; { homepage = "https://www.nongnu.org/lzip/clzip.html"; description = "C language version of lzip"; + mainProgram = "clzip"; license = licenses.gpl2Plus; - maintainers = with maintainers; [ rs0vere ]; + maintainers = with maintainers; [ ]; platforms = platforms.all; }; }) |