uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
65
pkgs/applications/audio/sfxr-qt/default.nix
Normal file
65
pkgs/applications/audio/sfxr-qt/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, mkDerivation
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
, qtbase
|
||||
, qtquickcontrols2
|
||||
, SDL
|
||||
, python3
|
||||
, catch2
|
||||
, callPackage
|
||||
, nixosTests
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "sfxr-qt";
|
||||
version = "1.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "agateau";
|
||||
repo = "sfxr-qt";
|
||||
rev = version;
|
||||
sha256 = "sha256-Ce5NJe1f+C4pPmtenHYvtkxste+nPuxJoB+N7K2nyRo=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
cp ${catch2}/include/catch2/catch.hpp 3rdparty/catch2/single_include/catch2/catch.hpp
|
||||
'';
|
||||
|
||||
# Remove on next release
|
||||
patches = [(fetchpatch {
|
||||
name = "sfxr-qr-missing-qpainterpath-include";
|
||||
url = "https://github.com/agateau/sfxr-qt/commit/ef051f473654052112b647df987eb263e38faf47.patch";
|
||||
sha256 = "sha256-bqMnxHUzdS5oG/2hfr5MvkpwrtZW+GTN5fS2WpV2W2c=";
|
||||
})];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
extra-cmake-modules
|
||||
(python3.withPackages (pp: with pp; [ pyyaml jinja2 setuptools ]))
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtquickcontrols2
|
||||
SDL
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
passthru.tests = {
|
||||
export-square-wave = callPackage ./test-export-square-wave {};
|
||||
sfxr-qt-starts = nixosTests.sfxr-qt;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/agateau/sfxr-qt";
|
||||
description = "A sound effect generator, QtQuick port of sfxr";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ fgaz ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue