commit
d68657af92
@ -0,0 +1,32 @@ |
||||
import ./make-test-python.nix ({ pkgs, ... }: { |
||||
name = "sfxr-qt"; |
||||
meta = with pkgs.lib.maintainers; { |
||||
maintainers = [ fgaz ]; |
||||
}; |
||||
|
||||
machine = { config, pkgs, ... }: { |
||||
imports = [ |
||||
./common/x11.nix |
||||
]; |
||||
|
||||
services.xserver.enable = true; |
||||
sound.enable = true; |
||||
environment.systemPackages = [ pkgs.sfxr-qt ]; |
||||
}; |
||||
|
||||
enableOCR = true; |
||||
|
||||
testScript = |
||||
'' |
||||
machine.wait_for_x() |
||||
# Add a dummy sound card, or the program won't start |
||||
machine.execute("modprobe snd-dummy") |
||||
|
||||
machine.execute("sfxr-qt >&2 &") |
||||
|
||||
machine.wait_for_window(r"sfxr") |
||||
machine.sleep(10) |
||||
machine.wait_for_text("requency") |
||||
machine.screenshot("screen") |
||||
''; |
||||
}) |
@ -0,0 +1,6 @@ |
||||
{ runCommand, sfxr-qt }: |
||||
|
||||
runCommand "sfxr-qt-test-export-square-wave" '' |
||||
mkdir $out |
||||
${sfxr-qt}/bin/sfxr-qt --export --output $out/output.wav ${./input.sfxj} |
||||
'' |
@ -0,0 +1,29 @@ |
||||
{ |
||||
"properties": { |
||||
"attackTime": 0, |
||||
"baseFrequency": 1, |
||||
"changeAmount": 0, |
||||
"changeSpeed": 0, |
||||
"decayTime": 1, |
||||
"deltaSlide": 0, |
||||
"dutySweep": 0, |
||||
"hpFilterCutoff": 0, |
||||
"hpFilterCutoffSweep": 0, |
||||
"lpFilterCutoff": 1, |
||||
"lpFilterCutoffSweep": 0, |
||||
"lpFilterResonance": 0, |
||||
"minFrequency": 0, |
||||
"phaserOffset": 0, |
||||
"phaserSweep": 0, |
||||
"repeatSpeed": 0, |
||||
"slide": 0, |
||||
"squareDuty": 0, |
||||
"sustainPunch": 0, |
||||
"sustainTime": 1, |
||||
"vibratoDepth": 0, |
||||
"vibratoSpeed": 0, |
||||
"volume": 1, |
||||
"waveForm": "Square" |
||||
}, |
||||
"version": 1 |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,91 @@ |
||||
{ lib |
||||
, mkDerivation |
||||
, stdenv |
||||
, fetchFromGitHub |
||||
, cmake |
||||
, ninja |
||||
, pkg-config |
||||
, which |
||||
, python3 |
||||
, rsync |
||||
, makeWrapper |
||||
, qtbase |
||||
, qtsvg |
||||
, libGLU |
||||
, libGL |
||||
, zlib |
||||
, icu |
||||
, freetype |
||||
}: |
||||
|
||||
mkDerivation rec { |
||||
pname = "organicmaps"; |
||||
version = "2022.03.23-4-android"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "organicmaps"; |
||||
repo = "organicmaps"; |
||||
rev = version; |
||||
sha256 = "sha256-4VBsHq8z/odD7Nrk9e0sYMEBBLeTAHsWsdgPIN1KVZo="; |
||||
fetchSubmodules = true; |
||||
}; |
||||
|
||||
postPatch = '' |
||||
# Disable certificate check. It's dependent on time |
||||
echo "exit 0" > tools/unix/check_cert.sh |
||||
|
||||
# crude fix for https://github.com/organicmaps/organicmaps/issues/1862 |
||||
echo "echo ${lib.replaceStrings ["." "-" "android"] ["" "" ""] version}" > tools/unix/version.sh |
||||
''; |
||||
|
||||
nativeBuildInputs = [ |
||||
cmake |
||||
ninja |
||||
pkg-config |
||||
which |
||||
python3 |
||||
rsync |
||||
makeWrapper |
||||
]; |
||||
|
||||
# Most dependencies are vendored |
||||
buildInputs = [ |
||||
qtbase |
||||
qtsvg |
||||
libGLU |
||||
libGL |
||||
zlib |
||||
icu |
||||
freetype |
||||
]; |
||||
|
||||
# Yes, this is PRE configure. The configure phase uses cmake |
||||
preConfigure = '' |
||||
bash ./configure.sh |
||||
''; |
||||
|
||||
postInstall = '' |
||||
install -Dm755 OMaps $out/bin/OMaps |
||||
# Tell the program that the read-only and the read-write data locations |
||||
# are different, and create the read-write one. |
||||
wrapProgram $out/bin/OMaps \ |
||||
--add-flags "-resources_path $out/share/organicmaps/data" \ |
||||
--add-flags '-data_path "''${XDG_DATA_HOME:-''${HOME}/.local/share}/OMaps"' \ |
||||
--run 'mkdir -p "''${XDG_DATA_HOME:-''${HOME}/.local/share}/OMaps"' |
||||
|
||||
mkdir -p $out/share/organicmaps |
||||
cp -r ../data $out/share/organicmaps/data |
||||
install -Dm644 ../qt/res/logo.png $out/share/icons/hicolor/96x96/apps/organicmaps.png |
||||
install -Dm644 ../qt/res/OrganicMaps.desktop $out/share/applications/OrganicMaps.desktop |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://organicmaps.app/"; |
||||
description = "Detailed Offline Maps for Travellers, Tourists, Hikers and Cyclists"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ fgaz ]; |
||||
platforms = platforms.all; |
||||
mainProgram = "OMaps"; |
||||
broken = stdenv.isDarwin; # "invalid application of 'sizeof' to a function type" |
||||
}; |
||||
} |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,32 @@ |
||||
{ lib, buildGoModule, fetchFromGitHub, testVersion, ocm }: |
||||
|
||||
buildGoModule rec { |
||||
pname = "ocm"; |
||||
version = "0.1.62"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "openshift-online"; |
||||
repo = "ocm-cli"; |
||||
rev = "v${version}"; |
||||
sha256 = "0kv0zcx6wdlyid37ygzg05xyyk77ybd2qcdgbswjv6crcjh1xdrd"; |
||||
}; |
||||
|
||||
vendorSha256 = "sha256-nXUrbF9mcHy8G7c+ktQixBmmf6x066gpuaZ0eUsJQwc="; |
||||
|
||||
# Tests expect the binary to be located in the root directory. |
||||
preCheck = '' |
||||
ln -s $GOPATH/bin/ocm ocm |
||||
''; |
||||
|
||||
passthru.tests.version = testVersion { |
||||
package = ocm; |
||||
command = "ocm version"; |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
description = "CLI for the Red Hat OpenShift Cluster Manager"; |
||||
license = licenses.asl20; |
||||
homepage = "https://github.com/openshift-online/ocm-cli"; |
||||
maintainers = with maintainers; [ stehessel ]; |
||||
}; |
||||
} |
@ -0,0 +1,27 @@ |
||||
{ lib, buildGoModule, fetchFromGitHub }: |
||||
|
||||
buildGoModule rec { |
||||
pname = "pluto"; |
||||
version = "5.6.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "FairwindsOps"; |
||||
repo = "pluto"; |
||||
rev = "v${version}"; |
||||
sha256 = "0nr8h8vg8ifgibgw80rs4mk63bj3qhmd37lfjc89iyml4g6p9mwr"; |
||||
}; |
||||
|
||||
vendorSha256 = "08x5mzypg66s54apkd7hhj6bi5pgbch9if2dbr58ksd3arkji2pv"; |
||||
|
||||
ldflags = [ |
||||
"-w" "-s" |
||||
"-X main.version=v${version}" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/FairwindsOps/pluto"; |
||||
description = "Find deprecated Kubernetes apiVersions"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ peterromfeldhk ]; |
||||
}; |
||||
} |
@ -0,0 +1,49 @@ |
||||
{ stdenv |
||||
, lib |
||||
, cmake |
||||
, fetchFromGitHub |
||||
, pkg-config |
||||
, fftwFloat |
||||
, mbedtls |
||||
, boost |
||||
, lksctp-tools |
||||
, libconfig |
||||
, pcsclite |
||||
, uhd |
||||
, soapysdr |
||||
, libbladeRF |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "srsran"; |
||||
version = "21.10"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "srsran"; |
||||
repo = "srsran"; |
||||
rev = "release_${builtins.replaceStrings ["."] ["_"] version}"; |
||||
sha256 = "sha256-uJv8khevp7g2p4zT6bkrut67kvMu+fuL1VHDDit0viw="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ]; |
||||
|
||||
buildInputs = [ |
||||
fftwFloat |
||||
mbedtls |
||||
boost |
||||
libconfig |
||||
lksctp-tools |
||||
pcsclite |
||||
uhd |
||||
soapysdr |
||||
libbladeRF |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://www.srslte.com/"; |
||||
description = "Open-source 4G and 5G software radio suite."; |
||||
license = licenses.agpl3; |
||||
platforms = with platforms; linux ; |
||||
maintainers = with maintainers; [ hexagonal-sun ]; |
||||
}; |
||||
} |
@ -0,0 +1,98 @@ |
||||
{ lib |
||||
, fetchurl |
||||
, fetchFromGitHub |
||||
, which |
||||
, linuxHeaders |
||||
, clang_9 |
||||
, llvmPackages_9 |
||||
, python3 |
||||
, debugRuntime ? true |
||||
, runtimeAsserts ? false |
||||
, extraKleeuClibcConfig ? {} |
||||
}: |
||||
|
||||
let |
||||
localeSrcBase = "uClibc-locale-030818.tgz"; |
||||
localeSrc = fetchurl { |
||||
url = "http://www.uclibc.org/downloads/${localeSrcBase}"; |
||||
sha256 = "xDYr4xijjxjZjcz0YtItlbq5LwVUi7k/ZSmP6a+uvVc="; |
||||
}; |
||||
resolvedExtraKleeuClibcConfig = lib.mapAttrsToList (name: value: "${name}=${value}") (extraKleeuClibcConfig // { |
||||
"UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA" = "n"; |
||||
"RUNTIME_PREFIX" = "/"; |
||||
"DEVEL_PREFIX" = "/"; |
||||
}); |
||||
in |
||||
clang_9.stdenv.mkDerivation rec { |
||||
pname = "klee-uclibc"; |
||||
version = "1.2"; |
||||
src = fetchFromGitHub { |
||||
owner = "klee"; |
||||
repo = "klee-uclibc"; |
||||
rev = "klee_uclibc_v${version}"; |
||||
sha256 = "qdrGMw+2XwpDsfxdv6swnoaoACcF5a/RWgUxUYbtPrI="; |
||||
}; |
||||
nativeBuildInputs = [ |
||||
clang_9 |
||||
llvmPackages_9.llvm |
||||
python3 |
||||
which |
||||
]; |
||||
|
||||
# Some uClibc sources depend on Linux headers. |
||||
UCLIBC_KERNEL_HEADERS = "${linuxHeaders}/include"; |
||||
|
||||
# HACK: needed for cross-compile. |
||||
# See https://www.mail-archive.com/klee-dev@imperial.ac.uk/msg03141.html |
||||
KLEE_CFLAGS = "-idirafter ${clang_9}/resource-root/include"; |
||||
|
||||
prePatch = '' |
||||
patchShebangs ./configure |
||||
patchShebangs ./extra |
||||
''; |
||||
|
||||
# klee-uclibc configure does not support --prefix, so we override configurePhase entirely |
||||
configurePhase = '' |
||||
./configure ${lib.escapeShellArgs ( |
||||
["--make-llvm-lib"] |
||||
++ lib.optional (!debugRuntime) "--enable-release" |
||||
++ lib.optional runtimeAsserts "--enable-assertions" |
||||
)} |
||||
|
||||
# Set all the configs we care about. |
||||
configs=( |
||||
PREFIX=$out |
||||
) |
||||
for value in ${lib.escapeShellArgs resolvedExtraKleeuClibcConfig}; do |
||||
configs+=("$value") |
||||
done |
||||
|
||||
for configFile in .config .config.cmd; do |
||||
for config in "''${configs[@]}"; do |
||||
prefix="''${config%%=*}=" |
||||
if grep -q "$prefix" "$configFile"; then |
||||
sed -i "s"'\001'"''${prefix}"'\001'"#''${prefix}"'\001'"g" "$configFile" |
||||
fi |
||||
echo "$config" >> "$configFile" |
||||
done |
||||
done |
||||
''; |
||||
|
||||
# Link the locale source into the correct place |
||||
preBuild = '' |
||||
ln -sf ${localeSrc} extra/locale/${localeSrcBase} |
||||
''; |
||||
|
||||
makeFlags = ["HAVE_DOT_CONFIG=y"]; |
||||
|
||||
meta = with lib; { |
||||
description = "A modified version of uClibc for KLEE."; |
||||
longDescription = '' |
||||
klee-uclibc is a bitcode build of uClibc meant for compatibility with the |
||||
KLEE symbolic virtual machine. |
||||
''; |
||||
homepage = "https://klee.github.io/"; |
||||
license = licenses.lgpl3; |
||||
maintainers = with maintainers; [ numinit ]; |
||||
}; |
||||
} |
@ -0,0 +1,25 @@ |
||||
{ lib, stdenv, fetchzip }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "generaluser"; |
||||
version = "1.471"; |
||||
|
||||
# we can't use fetchurl since stdenv does not handle unpacking *.zip's by default. |
||||
src = fetchzip { |
||||
# Linked on http://www.schristiancollins.com/generaluser.php: |
||||
url = "https://www.dropbox.com/s/4x27l49kxcwamp5/GeneralUser_GS_${version}.zip"; |
||||
sha256 = "sha256-lwUlWubXiVZ8fijKuNF54YQjT0uigjNAbjKaNjmC51s="; |
||||
}; |
||||
|
||||
installPhase = '' |
||||
install -Dm644 GeneralUser*.sf2 $out/share/soundfonts/GeneralUser-GS.sf2 |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "a SoundFont bank featuring 259 instrument presets and 11 drum kits"; |
||||
homepage = "http://www.schristiancollins.com/generaluser.php"; |
||||
license = licenses.generaluser; |
||||
platforms = platforms.all; |
||||
maintainers = with maintainers; [ ckie ]; |
||||
}; |
||||
} |
@ -1,37 +0,0 @@ |
||||
{ lib, stdenv, fetchFromGitHub, pkg-config, libsixel, yasm |
||||
}: |
||||
|
||||
stdenv.mkDerivation { |
||||
|
||||
pname = "ffmpeg-sixel"; |
||||
version = "nightly-2.3.x"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "saitoha"; |
||||
repo = "FFmpeg-SIXEL"; |
||||
rev = "8566fdb8b7516b54aed58f329dc216e06fc10052"; |
||||
sha256 = "00s2lggfdj2ibpngpyqqg7360p7yb69ys1ppg59yvv0m0mxk5x3k"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ pkg-config ]; |
||||
buildInputs = [ |
||||
libsixel |
||||
yasm |
||||
]; |
||||
|
||||
configurePhase = '' |
||||
./configure --enable-libsixel --prefix=$out |
||||
''; |
||||
|
||||
postInstall = '' |
||||
mv $out/bin/ffmpeg $out/bin/ffmpeg-sixel |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "A complete, cross-platform solution to record, convert and stream audio and video, extended to support console graphics"; |
||||
homepage = "http://www.ffmpeg.org/"; |
||||
license = licenses.lgpl3; |
||||
platforms = platforms.linux; |
||||
maintainers = with maintainers; [ vrthra ]; |
||||
}; |
||||
} |
@ -1,15 +0,0 @@ |
||||
{ callPackage |
||||
# Darwin frameworks |
||||
, Cocoa, CoreMedia |
||||
, ... |
||||
}@args: |
||||
|
||||
callPackage ./generic.nix (rec { |
||||
version = branch; |
||||
branch = "3.4.8"; |
||||
sha256 = "1d0r4yja2dkkyhdwx1migq46gsrcbajiv66263a5sq5bfr9dqkch"; |
||||
darwinFrameworks = [ Cocoa CoreMedia ]; |
||||
knownVulnerabilities = [ |
||||
"CVE-2021-30123" |
||||
]; |
||||
} // args) |
@ -0,0 +1,32 @@ |
||||
{ lib |
||||
, stdenv |
||||
, fetchFromGitHub |
||||
, nix-update-script |
||||
, cmake |
||||
}: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
version = "2.5.0"; |
||||
pname = "tinygltf"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "syoyo"; |
||||
repo = "tinygltf"; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-Pw4iNJs0bKALVPFBYUJe5/WjHxdffungCKfJFJEpDas="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ cmake ]; |
||||
|
||||
passthru.updateScript = nix-update-script { |
||||
attrPath = pname; |
||||
}; |
||||
|
||||
meta = with lib; { |
||||
description = "Header only C++11 tiny glTF 2.0 library"; |
||||
homepage = "https://github.com/syoyo/tinygltf"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ jansol ]; |
||||
platforms = platforms.all; |
||||
}; |
||||
} |
@ -1,25 +0,0 @@ |
||||
{ lib, buildOcaml, fetchFromGitHub, type_conv, camlp4 }: |
||||
|
||||
buildOcaml rec { |
||||
pname = "comparelib"; |
||||
version = "113.00.00"; |
||||
|
||||
minimumSupportedOcamlVersion = "4.00"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "janestreet"; |
||||
repo = "comparelib"; |
||||
rev = version; |
||||
sha256 = "sha256-gtJvXAUxiIt/L9bCzS+8wHcCQ+QpBubwcjDcyN0K2MA="; |
||||
}; |
||||
|
||||
buildInputs = [ camlp4 ]; |
||||
propagatedBuildInputs = [ type_conv ]; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/janestreet/comparelib"; |
||||
description = "Syntax extension for deriving \"compare\" functions automatically"; |
||||
license = licenses.asl20; |
||||
maintainers = [ maintainers.ericbmerritt ]; |
||||
}; |
||||
} |
@ -1,31 +0,0 @@ |
||||
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, type_conv, camlp4 }: |
||||
|
||||
assert lib.versionAtLeast (lib.getVersion ocaml) "4.00"; |
||||
|
||||
if lib.versionAtLeast ocaml.version "4.06" |
||||
then throw "enumerate-111.08.00 is not available for OCaml ${ocaml.version}" |
||||
else |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "ocaml-enumerate"; |
||||
version = "111.08.00"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://ocaml.janestreet.com/ocaml-core/${lib.versions.majorMinor version}.00/individual/enumerate-${version}.tar.gz"; |
||||
sha256 = "0b6mx5p01lcpimvak4wx6aj2119707wsfzd83rwgb91bhpgzh156"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ ocaml findlib ocamlbuild ]; |
||||
propagatedBuildInputs = [ type_conv camlp4 ]; |
||||
|
||||
strictDeps = true; |
||||
|
||||
createFindlibDestdir = true; |
||||
|
||||
meta = { |
||||
homepage = "https://ocaml.janestreet.com/"; |
||||
description = "Quotation expanders for enumerating finite types"; |
||||
license = lib.licenses.asl20; |
||||
platforms = ocaml.meta.platforms or [ ]; |
||||
}; |
||||
} |
@ -0,0 +1,45 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, poetry-core |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "pathable"; |
||||
version = "0.4.0"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "p1c2u"; |
||||
repo = pname; |
||||
rev = version; |
||||
hash = "sha256-3qekweG+o7f6nm1cnCEHrWYn/fQ42GZrZkPwGbZcU38="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
poetry-core |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
postPatch = '' |
||||
sed -i "/--cov/d" pyproject.toml |
||||
''; |
||||
|
||||
pythonImportsCheck = [ |
||||
"pathable" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Library for object-oriented paths"; |
||||
homepage = "https://github.com/p1c2u/pathable"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue