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
42
pkgs/applications/virtualization/umoci/default.nix
Normal file
42
pkgs/applications/virtualization/umoci/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
, go-md2man
|
||||
, installShellFiles
|
||||
, bash
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "umoci";
|
||||
version = "0.4.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "opencontainers";
|
||||
repo = "umoci";
|
||||
rev = "v${version}";
|
||||
sha256 = "0in8kyi4jprvbm3zsl3risbjj8b0ma62yl3rq8rcvcgypx0mn7d4";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
doCheck = false;
|
||||
|
||||
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||
|
||||
nativeBuildInputs = [ go-md2man installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace Makefile --replace \
|
||||
'$(shell which bash)' '${lib.getBin bash}/bin/bash'
|
||||
make docs
|
||||
installManPage doc/man/*.[1-9]
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "umoci modifies Open Container images";
|
||||
homepage = "https://umo.ci";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ zokrezyl ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue