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
53
pkgs/development/libraries/libfsm/default.nix
Normal file
53
pkgs/development/libraries/libfsm/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
, bmake
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libfsm";
|
||||
version = "0.1pre2442_${builtins.substring 0 8 src.rev}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "katef";
|
||||
repo = pname;
|
||||
rev = "9c5095f7364fa464efff6c81fad9b60b19dfcc99";
|
||||
sha256 = "1bs51agvrrwqid0slq2svj2yj7kkjdsnv3xsrk8zmf1jbgza6jrm";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bmake ];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# note: build checks value of '$CC' to add some extra cflags, but we don't
|
||||
# necessarily know which 'stdenv' someone chose, so we leave it alone (e.g.
|
||||
# if we use stdenv vs clangStdenv, we don't know which, and CC=cc in all
|
||||
# cases.) it's unclear exactly what should be done if we want those flags,
|
||||
# but the defaults work fine.
|
||||
makeFlags = [ "-r" "PREFIX=$(out)" ];
|
||||
|
||||
# fix up multi-output install. we also have to fix the pkg-config libdir
|
||||
# file; it uses prefix=$out; libdir=${prefix}/lib, which is wrong in
|
||||
# our case; libdir should really be set to the $lib output.
|
||||
postInstall = ''
|
||||
mkdir -p $lib $dev/lib
|
||||
|
||||
mv $out/lib $lib/lib
|
||||
mv $out/include $dev/include
|
||||
mv $out/share/pkgconfig $dev/lib/pkgconfig
|
||||
rmdir $out/share
|
||||
|
||||
for x in libfsm.pc libre.pc; do
|
||||
substituteInPlace "$dev/lib/pkgconfig/$x" \
|
||||
--replace 'libdir=''${prefix}/lib' "libdir=$lib/lib"
|
||||
done
|
||||
'';
|
||||
|
||||
outputs = [ "out" "lib" "dev" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "DFA regular expression library & friends";
|
||||
homepage = "https://github.com/katef/libfsm";
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ thoughtpolice ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue