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
30
pkgs/applications/misc/orpie/default.nix
Normal file
30
pkgs/applications/misc/orpie/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, fetchFromGitHub, ocamlPackages }:
|
||||
|
||||
ocamlPackages.buildDunePackage rec {
|
||||
pname = "orpie";
|
||||
version = "1.6.1";
|
||||
|
||||
useDune2 = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pelzlpj";
|
||||
repo = pname;
|
||||
rev = "release-${version}";
|
||||
sha256 = "1rx2nl6cdv609pfymnbq53pi3ql5fr4kda8x10ycd9xq2gc4f21g";
|
||||
};
|
||||
|
||||
patches = [ ./prefix.patch ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace src/orpie/install.ml.in --replace '@prefix@' $out
|
||||
'';
|
||||
|
||||
buildInputs = with ocamlPackages; [ curses camlp5 num gsl ];
|
||||
|
||||
meta = {
|
||||
inherit (src.meta) homepage;
|
||||
description = "A Curses-based RPN calculator";
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ obadz ];
|
||||
};
|
||||
}
|
||||
11
pkgs/applications/misc/orpie/prefix.patch
Normal file
11
pkgs/applications/misc/orpie/prefix.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- a/src/orpie/dune 2021-10-05 06:09:09.040120000 +0200
|
||||
+++ b/src/orpie/dune 2021-10-05 06:10:06.568418512 +0200
|
||||
@@ -18,7 +18,7 @@
|
||||
; Support $PREFIX for overriding installation location
|
||||
(rule
|
||||
(targets install.ml)
|
||||
- (action (run %{project_root}/scripts/compute_prefix subst %{deps} %{targets}))
|
||||
+ (action (copy# %{deps} %{targets}))
|
||||
(deps (file install.ml.in)))
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue