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
9
pkgs/development/interpreters/elixir/1.10.nix
Normal file
9
pkgs/development/interpreters/elixir/1.10.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ mkDerivation }:
|
||||
|
||||
# How to obtain `sha256`:
|
||||
# nix-prefetch-url --unpack https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz
|
||||
mkDerivation {
|
||||
version = "1.10.4";
|
||||
sha256 = "16j4rmm3ix088fvxhvyjqf1hnfg7wiwa87gml3b2mrwirdycbinv";
|
||||
minimumOTPVersion = "21";
|
||||
}
|
||||
9
pkgs/development/interpreters/elixir/1.11.nix
Normal file
9
pkgs/development/interpreters/elixir/1.11.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ mkDerivation }:
|
||||
|
||||
# How to obtain `sha256`:
|
||||
# nix-prefetch-url --unpack https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz
|
||||
mkDerivation {
|
||||
version = "1.11.4";
|
||||
sha256 = "sha256-qCX6hRWUbW+E5xaUhcYxRAnhnvncASUJck8lESlcDvk=";
|
||||
minimumOTPVersion = "21";
|
||||
}
|
||||
9
pkgs/development/interpreters/elixir/1.12.nix
Normal file
9
pkgs/development/interpreters/elixir/1.12.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ mkDerivation }:
|
||||
|
||||
# How to obtain `sha256`:
|
||||
# nix-prefetch-url --unpack https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz
|
||||
mkDerivation {
|
||||
version = "1.12.3";
|
||||
sha256 = "sha256-Jo9ZC5cSBVpjVnGZ8tEIUKOhW9uvJM/h84+VcnrT0R0=";
|
||||
minimumOTPVersion = "22";
|
||||
}
|
||||
9
pkgs/development/interpreters/elixir/1.13.nix
Normal file
9
pkgs/development/interpreters/elixir/1.13.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ mkDerivation }:
|
||||
|
||||
# How to obtain `sha256`:
|
||||
# nix-prefetch-url --unpack https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz
|
||||
mkDerivation {
|
||||
version = "1.13.4";
|
||||
sha256 = "sha256-xGKq62wzaIfgZN2j808fL3b8ykizQVPuePWzsy2HKfw=";
|
||||
minimumOTPVersion = "22";
|
||||
}
|
||||
9
pkgs/development/interpreters/elixir/1.9.nix
Normal file
9
pkgs/development/interpreters/elixir/1.9.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ mkDerivation }:
|
||||
|
||||
# How to obtain `sha256`:
|
||||
# nix-prefetch-url --unpack https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz
|
||||
mkDerivation {
|
||||
version = "1.9.4";
|
||||
sha256 = "1l4318g35y4h0vi2w07ayc3jizw1xc3s7hdb47w6j3iw33y06g6b";
|
||||
minimumOTPVersion = "20";
|
||||
}
|
||||
79
pkgs/development/interpreters/elixir/generic-builder.nix
Normal file
79
pkgs/development/interpreters/elixir/generic-builder.nix
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, erlang
|
||||
, makeWrapper
|
||||
, coreutils
|
||||
, curl
|
||||
, bash
|
||||
, debugInfo ? false
|
||||
}:
|
||||
|
||||
{ baseName ? "elixir"
|
||||
, version
|
||||
, minimumOTPVersion
|
||||
, sha256 ? null
|
||||
, rev ? "v${version}"
|
||||
, src ? fetchFromGitHub { inherit rev sha256; owner = "elixir-lang"; repo = "elixir"; }
|
||||
} @ args:
|
||||
|
||||
let
|
||||
inherit (lib) getVersion versionAtLeast optional;
|
||||
|
||||
in
|
||||
assert versionAtLeast (getVersion erlang) minimumOTPVersion;
|
||||
|
||||
stdenv.mkDerivation ({
|
||||
pname = "${baseName}";
|
||||
|
||||
inherit src version debugInfo;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ erlang ];
|
||||
|
||||
LANG = "C.UTF-8";
|
||||
LC_TYPE = "C.UTF-8";
|
||||
|
||||
buildFlags = optional debugInfo "ERL_COMPILER_OPTIONS=debug_info";
|
||||
|
||||
preBuild = ''
|
||||
patchShebangs lib/elixir/generate_app.escript || true
|
||||
|
||||
substituteInPlace Makefile \
|
||||
--replace "/usr/local" $out
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
# Elixir binaries are shell scripts which run erl. Add some stuff
|
||||
# to PATH so the scripts can run without problems.
|
||||
|
||||
for f in $out/bin/*; do
|
||||
b=$(basename $f)
|
||||
if [ "$b" = mix ]; then continue; fi
|
||||
wrapProgram $f \
|
||||
--prefix PATH ":" "${lib.makeBinPath [ erlang coreutils curl bash ]}"
|
||||
done
|
||||
|
||||
substituteInPlace $out/bin/mix \
|
||||
--replace "/usr/bin/env elixir" "${coreutils}/bin/env elixir"
|
||||
'';
|
||||
|
||||
pos = builtins.unsafeGetAttrPos "sha256" args;
|
||||
meta = with lib; {
|
||||
homepage = "https://elixir-lang.org/";
|
||||
description = "A functional, meta-programming aware language built on top of the Erlang VM";
|
||||
|
||||
longDescription = ''
|
||||
Elixir is a functional, meta-programming aware language built on
|
||||
top of the Erlang VM. It is a dynamic language with flexible
|
||||
syntax and macro support that leverages Erlang's abilities to
|
||||
build concurrent, distributed and fault-tolerant applications
|
||||
with hot code upgrades.
|
||||
'';
|
||||
|
||||
license = licenses.epl10;
|
||||
platforms = platforms.unix;
|
||||
maintainers = teams.beam.members;
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue