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
8
pkgs/applications/misc/ape/apeclex.nix
Normal file
8
pkgs/applications/misc/ape/apeclex.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ lib, attemptoClex, callPackage }:
|
||||
|
||||
callPackage ./. {
|
||||
pname = "ape-clex";
|
||||
lexiconPath = "${attemptoClex}/clex_lexicon.pl";
|
||||
description = "Parser for Attempto Controlled English (ACE) with a large lexicon (~100,000 entries)";
|
||||
license = with lib; [ licenses.lgpl3 licenses.gpl3 ];
|
||||
}
|
||||
25
pkgs/applications/misc/ape/clex.nix
Normal file
25
pkgs/applications/misc/ape/clex.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "attempto-clex";
|
||||
version = "5133afe";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Attempto";
|
||||
repo = "Clex";
|
||||
rev = version;
|
||||
sha256 = "0p9s64g1jic213bwm6347jqckszgnni9szrrz31qjgaf32kf7nkp";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp clex_lexicon.pl $out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Large lexicon for APE (~100,000 entries)";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ yrashk ];
|
||||
};
|
||||
}
|
||||
46
pkgs/applications/misc/ape/default.nix
Normal file
46
pkgs/applications/misc/ape/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv, swiProlog, makeWrapper,
|
||||
fetchFromGitHub,
|
||||
lexiconPath ? "prolog/lexicon/clex_lexicon.pl",
|
||||
pname ? "ape",
|
||||
description ? "Parser for Attempto Controlled English (ACE)",
|
||||
license ? with lib; licenses.lgpl3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
inherit pname;
|
||||
version = "2019-08-10";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ swiProlog ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Attempto";
|
||||
repo = "APE";
|
||||
rev = "113b81621262d7a395779465cb09397183e6f74c";
|
||||
sha256 = "0xyvna2fbr18hi5yvm0zwh77q02dfna1g4g53z9mn2rmlfn2mhjh";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
# We move the file first to avoid "same file" error in the default case
|
||||
cp ${lexiconPath} new_lexicon.pl
|
||||
rm prolog/lexicon/clex_lexicon.pl
|
||||
cp new_lexicon.pl prolog/lexicon/clex_lexicon.pl
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
make SHELL=${stdenv.shell} build
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp ape.exe $out
|
||||
makeWrapper $out/ape.exe $out/bin/ape --add-flags ace
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = description;
|
||||
license = license;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ yrashk ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue