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
|
|
@ -0,0 +1,25 @@
|
|||
From 40c81f684ec2014ea63a712329f61c52aebe4dba Mon Sep 17 00:00:00 2001
|
||||
From: Valentin Boettcher <hiro@protagon.space>
|
||||
Date: Wed, 4 Aug 2021 17:25:12 +0200
|
||||
Subject: [PATCH] get image from environment
|
||||
|
||||
---
|
||||
src/cmd-run-sbcl.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/cmd-run-sbcl.c b/src/cmd-run-sbcl.c
|
||||
index a83b56c..dc472bb 100644
|
||||
--- a/src/cmd-run-sbcl.c
|
||||
+++ b/src/cmd-run-sbcl.c
|
||||
@@ -12,7 +12,7 @@ char** cmd_run_sbcl(int argc,char** argv,struct sub_command* cmd) {
|
||||
char* impl_path=impldir(arch,os,impl,version);
|
||||
char* help=get_opt("help",0);
|
||||
char* script=get_opt("script",0);
|
||||
- char* image=get_opt("image",0);
|
||||
+ char* image=get_opt("image",1);
|
||||
char* program=get_opt("program",0);
|
||||
char* dynamic_space_size=get_opt("dynamic-space-size",1);
|
||||
char* control_stack_size=get_opt("control-stack-size",1);
|
||||
--
|
||||
2.32.0
|
||||
|
||||
46
pkgs/development/tools/roswell/default.nix
Normal file
46
pkgs/development/tools/roswell/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv, fetchFromGitHub, curl, autoconf, automake, makeWrapper, sbcl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "roswell";
|
||||
version = "21.10.14.111";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "roswell";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-K4RDNTY8g6MNjjiwXMmYaZm0fChJ1C1eTpc0h7ja1ds=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Load the name of the image from the environment variable so that
|
||||
# it can be consistently overwritten. Using the command line
|
||||
# argument in the wrapper did not work.
|
||||
./0001-get-image-from-environment.patch
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
sh bootstrap
|
||||
'';
|
||||
|
||||
configureFlags = [ "--prefix=${placeholder "out"}" ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/ros \
|
||||
--set image `basename $out` \
|
||||
--add-flags 'lisp=sbcl-bin/system sbcl-bin.version=system -L sbcl-bin' \
|
||||
--prefix PATH : ${lib.makeBinPath [ sbcl ]} --argv0 ros
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoconf automake makeWrapper ];
|
||||
|
||||
buildInputs = [ sbcl curl ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Roswell is a Lisp implementation installer/manager, launcher, and much more";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hiro98 ];
|
||||
platforms = platforms.linux;
|
||||
homepage = "https://github.com/roswell/roswell";
|
||||
mainProgram = "ros";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue