commit
ca38c61118
@ -1,65 +0,0 @@ |
||||
{ stdenv, lib, fetchurl, zlib, glib, alsa-lib, makeDesktopItem |
||||
, dbus, gtk2, atk, pango, freetype, fontconfig, libgnome-keyring3, gdk-pixbuf |
||||
, cairo, cups, expat, libgpg-error, nspr, gnome2, nss, xorg, systemd, libnotify |
||||
}: |
||||
|
||||
let |
||||
libPath = lib.makeLibraryPath [ |
||||
stdenv.cc.cc zlib glib dbus gtk2 atk pango freetype libgnome-keyring3 nss |
||||
fontconfig gdk-pixbuf cairo cups expat libgpg-error alsa-lib nspr gnome2.GConf |
||||
xorg.libXrender xorg.libX11 xorg.libXext xorg.libXdamage xorg.libXtst |
||||
xorg.libXcomposite xorg.libXi xorg.libXfixes libnotify xorg.libXrandr |
||||
xorg.libXcursor |
||||
]; |
||||
desktopItem = makeDesktopItem { |
||||
name = "LightTable"; |
||||
exec = "light"; |
||||
comment = "LightTable"; |
||||
desktopName = "LightTable"; |
||||
genericName = "the next generation code editor"; |
||||
}; |
||||
in |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "lighttable"; |
||||
version = "0.8.1"; |
||||
|
||||
src = |
||||
fetchurl { |
||||
name = "LightTableLinux64.tar.gz"; |
||||
url = "https://github.com/LightTable/LightTable/releases/download/${version}/${pname}-${version}-linux.tar.gz"; |
||||
sha256 = "06fj725xfhf3fwrf7dya7ijmxq3v76kfmd4lr2067a92zhlwr5pv"; |
||||
}; |
||||
|
||||
dontConfigure = true; |
||||
|
||||
installPhase = '' |
||||
tar xf ${src} |
||||
mkdir -p $out/{bin,share/LightTable} |
||||
mv ./${pname}-${version}-linux/* $out/share/LightTable |
||||
|
||||
patchelf \ |
||||
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ |
||||
--set-rpath ${libPath}:${libPath}/lib64:$out/share/LightTable \ |
||||
$out/share/LightTable/LightTable |
||||
|
||||
mv $out/share/LightTable/light $out/bin/light |
||||
|
||||
ln -sf ${lib.getLib systemd}/lib/libudev.so.1 $out/share/LightTable/libudev.so.0 |
||||
substituteInPlace $out/bin/light \ |
||||
--replace "/usr/lib/x86_64-linux-gnu" "${lib.getLib systemd}/lib" \ |
||||
--replace "/lib/x86_64-linux-gnu" "$out/share/LightTable" \ |
||||
--replace 'HERE=`dirname $(readlink -f $0)`' "HERE=$out/share/LightTable" |
||||
|
||||
mkdir -p "$out"/share/applications |
||||
cp "${desktopItem}/share/applications/LightTable.desktop" "$out"/share/applications/ |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "The next generation code editor"; |
||||
homepage = "http://www.lighttable.com/"; |
||||
license = licenses.gpl3; |
||||
maintainers = [ maintainers.matejc ]; |
||||
platforms = [ "x86_64-linux" ]; |
||||
}; |
||||
} |
@ -1,51 +0,0 @@ |
||||
{ lib, stdenv, fetchurl |
||||
, pkg-config |
||||
, intltool |
||||
, libX11, libXv, libSM |
||||
, gtk, libglade |
||||
, wxGTK |
||||
, perlPackages |
||||
, xvidcore |
||||
, mjpegtools |
||||
, alsa-lib |
||||
, libv4l |
||||
, cimg }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
|
||||
pname = "wxcam"; |
||||
version = "1.1"; |
||||
|
||||
src = fetchurl { |
||||
url = "mirror://sourceforge/project/wxcam/wxcam/${version}/${pname}-${version}.tar.gz"; |
||||
sha256 = "1765bvc65fpzn9ycnnj5hais9xkx9v0sm6a878d35x54bpanr859"; |
||||
}; |
||||
|
||||
buildInputs = with lib; |
||||
[ pkg-config intltool libX11 libXv libSM gtk libglade wxGTK perlPackages.XMLParser xvidcore mjpegtools alsa-lib libv4l cimg ]; |
||||
|
||||
NIX_CFLAGS_COMPILE="-I ${cimg}/include/cimg"; |
||||
|
||||
postUnpack = '' |
||||
sed -ie 's|/usr/share/|'"$out/share/"'|g' $sourceRoot/Makefile.in |
||||
''; |
||||
|
||||
installPhase = '' |
||||
make install prefix="$out" wxcamdocdir="$out/share/doc/wxcam" |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "An open-source, wxGTK-based webcam app for Linux"; |
||||
longDescription = '' |
||||
wxCam is a webcam application for linux. It supports video recording |
||||
(avi uncompressed and Xvid formats), snapshot taking, and some special |
||||
commands for philips webcams, so you can also use it for astronomy purposes. |
||||
It supports both video4linux 1 and 2 drivers, |
||||
so it should work on a very large number of devices. |
||||
''; |
||||
homepage = "http://wxcam.sourceforge.net/"; |
||||
license = licenses.gpl3Plus; |
||||
maintainers = [ maintainers.AndersonTorres ]; |
||||
platforms = platforms.linux; |
||||
}; |
||||
} |
@ -0,0 +1,24 @@ |
||||
{ lib, buildPythonPackage, fetchPypi, rpi-gpio }: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "pad4pi"; |
||||
version = "1.1.5"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "sha256-+oVYlqF5PQAFz4EO1ap6pjmYTLg9xQy6UbQja4utt2Q="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = [ rpi-gpio ]; |
||||
|
||||
# Checks depend on rpi-gpio which requires to be run on a Raspberry Pi, |
||||
# therefore it fails on other systems |
||||
doCheck = false; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/brettmclean/pad4pi"; |
||||
description = "Interrupt-based matrix keypad library for Raspberry Pi"; |
||||
license = licenses.lgpl3; |
||||
maintainers = with maintainers; [ onny ]; |
||||
}; |
||||
} |
@ -1,37 +1,58 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, fetchpatch |
||||
, fetchPypi |
||||
, pythonOlder |
||||
, pytest |
||||
, rapidjson |
||||
, pytestCheckHook |
||||
, pytz |
||||
, glibcLocales |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
let |
||||
rapidjson' = rapidjson.overrideAttrs (old: { |
||||
version = "unstable-2022-05-24"; |
||||
src = fetchFromGitHub { |
||||
owner = "Tencent"; |
||||
repo = "rapidjson"; |
||||
rev = "232389d4f1012dddec4ef84861face2d2ba85709"; |
||||
hash = "sha256-RLvDcInUa8E8DRA4U/oXEE8+TZ0SDXXDU/oWvpfDWjw="; |
||||
}; |
||||
patches = [ |
||||
(fetchpatch { |
||||
url = "https://git.alpinelinux.org/aports/plain/community/rapidjson/do-not-include-gtest-src-dir.patch"; |
||||
hash = "sha256-BjSZEwfCXA/9V+kxQ/2JPWbc26jQn35CfN8+8NW24s4="; |
||||
}) |
||||
]; |
||||
}); |
||||
in buildPythonPackage rec { |
||||
version = "1.6"; |
||||
pname = "python-rapidjson"; |
||||
disabled = pythonOlder "3.4"; |
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "sha256-GJzxqWv5/NhtADYPFa12qDzgiJuK6NHLD9srKZXlocg="; |
||||
}; |
||||
|
||||
LC_ALL="en_US.utf-8"; |
||||
buildInputs = [ glibcLocales ]; |
||||
setupPyBuildFlags = [ |
||||
"--rj-include-dir=${lib.getDev rapidjson'}/include" |
||||
]; |
||||
|
||||
# buildInputs = [ ]; |
||||
checkInputs = [ pytest pytz ]; |
||||
# propagatedBuildInputs = [ ]; |
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
pytz |
||||
]; |
||||
|
||||
checkPhase = '' |
||||
pytest tests |
||||
''; |
||||
disabledTestPaths = [ |
||||
"benchmarks" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/python-rapidjson/python-rapidjson"; |
||||
description = "Python wrapper around rapidjson "; |
||||
description = "Python wrapper around rapidjson"; |
||||
license = licenses.mit; |
||||
maintainers = [ maintainers.costrouc ]; |
||||
maintainers = with maintainers; [ costrouc dotlambda ]; |
||||
}; |
||||
} |
||||
|
@ -0,0 +1,24 @@ |
||||
{ lib, buildPythonPackage, fetchPypi }: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "rplcd"; |
||||
version = "1.3.0"; |
||||
|
||||
src = fetchPypi { |
||||
inherit version; |
||||
pname = "RPLCD"; |
||||
sha256 = "sha256-AIEiL+IPU76DF+P08c5qokiJcZdNNDJ/Jjng2Z292LY="; |
||||
}; |
||||
|
||||
# Disable check because it depends on a GPIO library |
||||
doCheck = false; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/dbrgn/RPLCD"; |
||||
description = '' |
||||
Raspberry Pi LCD library for the widely used Hitachi HD44780 controller |
||||
''; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ onny ]; |
||||
}; |
||||
} |
@ -1,13 +1,13 @@ |
||||
{ |
||||
"version": "0.1.7", |
||||
"version": "0.1.8", |
||||
"assets": { |
||||
"x86_64-darwin": { |
||||
"asset": "scala-cli-x86_64-apple-darwin.gz", |
||||
"sha256": "1sly3s9y742nms8kqwh2cikjkcnbkkafsql8sw2w2zr53z28g10v" |
||||
"sha256": "1dxhwhdk7kflzn4ckqxfxkz4v26l39ki6ykpml6k6kvy3nn0wwz3" |
||||
}, |
||||
"x86_64-linux": { |
||||
"asset": "scala-cli-x86_64-pc-linux.gz", |
||||
"sha256": "1lgcbxzhwqfnj6n81w1ssdcrn1j0c93chqgh0zzqi08w8wk3x4j5" |
||||
"sha256": "0hj22lcmbbfgv69k778myb0kp79gbg7xx9a3b66g3svxmanlbvxf" |
||||
} |
||||
} |
||||
} |
||||
|
@ -1,59 +0,0 @@ |
||||
{ stdenv, lib, makeWrapper, fetchurl, |
||||
alsa-lib, atk, cairo, cups, dbus, expat, fontconfig, freetype, gdk-pixbuf, glib, |
||||
gnome2, pango, gtk2-x11, nspr, nss, |
||||
libX11, libxcb, libXcomposite, libXcursor, libXdamage, libXext, libXfixes, |
||||
libXi, libXrandr, libXrender, libXScrnSaver, libXtst, |
||||
libudev0-shim |
||||
}: |
||||
stdenv.mkDerivation rec { |
||||
pname = "sweep-visualizer"; |
||||
version = "0.15.0"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://s3.amazonaws.com/scanse/Visualizer/v${version}/sweepvisualizer_${version}_amd64.deb"; |
||||
sha256 = "1k6rdjw2340qrzafv6hjxvbvyh3s1wad6d3629nchdcrpyx9xy1c"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ makeWrapper ]; |
||||
|
||||
sourceRoot = "."; |
||||
unpackCmd = '' |
||||
ar p "$src" data.tar.xz | tar xJ |
||||
''; |
||||
|
||||
dontBuild = true; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/bin $out/share/sweep-visualizer |
||||
mv usr/share/* $out/share |
||||
mv opt/Sweep\ Visualizer\ BETA/* $out/share/sweep-visualizer/ |
||||
ln -s $out/share/sweep-visualizer/sweep_visualizer $out/bin/sweep_visualizer |
||||
''; |
||||
|
||||
preFixup = let |
||||
libPath = lib.makeLibraryPath [ |
||||
alsa-lib atk cairo cups.lib dbus.lib expat fontconfig.lib freetype |
||||
gdk-pixbuf glib gnome2.GConf pango gtk2-x11 nspr nss stdenv.cc.cc.lib |
||||
libX11 libxcb libXcomposite libXcursor libXdamage libXext libXfixes |
||||
libXi libXrandr libXrender libXScrnSaver libXtst |
||||
]; |
||||
runtimeLibs = lib.makeLibraryPath [ libudev0-shim ]; |
||||
in '' |
||||
for lib in $out/share/sweep-visualizer/*.so; do |
||||
patchelf --set-rpath "$out/share/sweep-visualizer:${libPath}" $lib |
||||
done |
||||
patchelf \ |
||||
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ |
||||
--set-rpath "$out/share/sweep-visualizer:${libPath}" \ |
||||
$out/share/sweep-visualizer/sweep_visualizer |
||||
wrapProgram "$out/bin/sweep_visualizer" --prefix LD_LIBRARY_PATH : ${runtimeLibs} |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://support.scanse.io/hc/en-us/articles/115006008948-Visualizer-Overview"; |
||||
description = "A minimal desktop application for interfacing with the Sweep device"; |
||||
license = licenses.unfree; |
||||
platforms = [ "x86_64-linux" ]; |
||||
maintainers = with maintainers; [ mt-caret ]; |
||||
}; |
||||
} |
@ -0,0 +1,27 @@ |
||||
{lib, stdenv, fetchFromGitHub, openssl, libpcap, libxcrypt}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "asleap"; |
||||
version = "unstable-2021-06-20"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "zackw"; |
||||
repo = pname; |
||||
rev = "eb3bd42098cba42b65f499c9d8c73d890861b94f"; |
||||
sha256 = "sha256-S6jS0cg9tHSfmP6VHyISkXJxczhPx3HDdxT46c+YmE8="; |
||||
}; |
||||
|
||||
buildInputs = [ openssl libpcap libxcrypt ]; |
||||
|
||||
installPhase = '' |
||||
install -Dm755 asleap $out/bin/asleap |
||||
install -Dm755 genkeys $out/bin/genkeys |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/zackw/asleap"; |
||||
description = "Recovers weak LEAP and PPTP passwords"; |
||||
license = licenses.gpl2Only; |
||||
maintainers = with maintainers; [ thehedgeh0g ]; |
||||
}; |
||||
} |
@ -0,0 +1,62 @@ |
||||
{ lib |
||||
, stdenv |
||||
, buildGoModule |
||||
, fetchFromGitHub |
||||
, installShellFiles |
||||
}: |
||||
|
||||
buildGoModule rec { |
||||
pname = "chain-bench"; |
||||
version = "0.0.2"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "aquasecurity"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-aoqkCaMEFTmaV9ewSZW6iy5Uc+riha8ecOECVccb9MM="; |
||||
}; |
||||
vendorSha256 = "sha256-MTWXDIHVdgqdRO0ZoXzUPeTZ6Y19TjFQSvrhKP35BuM="; |
||||
|
||||
nativeBuildInputs = [ installShellFiles ]; |
||||
|
||||
ldflags = [ |
||||
"-s" |
||||
"-w" |
||||
"-X main.version=v${version}" |
||||
]; |
||||
|
||||
postInstall = '' |
||||
installShellCompletion --cmd chain-bench \ |
||||
--bash <($out/bin/chain-bench completion bash) \ |
||||
--fish <($out/bin/chain-bench completion fish) \ |
||||
--zsh <($out/bin/chain-bench completion zsh) |
||||
''; |
||||
|
||||
doInstallCheck = true; |
||||
installCheckPhase = '' |
||||
runHook preInstallCheck |
||||
$out/bin/chain-bench --help |
||||
$out/bin/chain-bench --version | grep "v${version}" |
||||
runHook postInstallCheck |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/aquasecurity/chain-bench"; |
||||
changelog = "https://github.com/aquasecurity/chain-bench/releases/tag/v${version}"; |
||||
description = "An open-source tool for auditing your software supply chain stack for security compliance based on a new CIS Software Supply Chain benchmark"; |
||||
longDescription = '' |
||||
Chain-bench is an open-source tool for auditing your software supply chain |
||||
stack for security compliance based on a new CIS Software Supply Chain |
||||
benchmark. The auditing focuses on the entire SDLC process, where it can |
||||
reveal risks from code time into deploy time. To win the race against |
||||
hackers and protect your sensitive data and customer trust, you need to |
||||
ensure your code is compliant with your organization's policies. |
||||
''; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ jk ]; |
||||
# TODO: see if this is an issue |
||||
# # Need updated macOS SDK |
||||
# # https://github.com/NixOS/nixpkgs/issues/101229 |
||||
# broken = (stdenv.isDarwin && stdenv.isx86_64); |
||||
}; |
||||
} |
Loading…
Reference in new issue