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/misc/klayout/default.nix
Normal file
65
pkgs/applications/misc/klayout/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub
|
||||
, python3, ruby, qtbase, qtmultimedia, qttools, qtxmlpatterns
|
||||
, which, perl
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "klayout";
|
||||
version = "0.27.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KLayout";
|
||||
repo = "klayout";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-t/nd7m8XpB026q/kyH16rKkw3qza19ISalB0Juzx4NU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/klayout.pri --replace "-Wno-reserved-user-defined-literal" ""
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
which
|
||||
perl
|
||||
python3
|
||||
ruby
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtmultimedia
|
||||
qttools
|
||||
qtxmlpatterns
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
mkdir -p $out/lib
|
||||
./build.sh -qt5 -prefix $out/lib -option -j$NIX_BUILD_CORES
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
mkdir $out/bin
|
||||
mv $out/lib/klayout $out/bin/
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = [ "-Wno-parentheses" ];
|
||||
|
||||
dontInstall = true; # Installation already happens as part of "build.sh"
|
||||
|
||||
# Fix: "gsiDeclQMessageLogger.cc:126:42: error: format not a string literal
|
||||
# and no format arguments [-Werror=format-security]"
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "High performance layout viewer and editor with support for GDS and OASIS";
|
||||
license = with licenses; [ gpl2Plus ];
|
||||
homepage = "https://www.klayout.de/";
|
||||
changelog = "https://www.klayout.de/development.html#${version}";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ knedlsepp ];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue