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
35
pkgs/tools/package-management/nix-index/default.nix
Normal file
35
pkgs/tools/package-management/nix-index/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config, openssl, curl
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "nix-index";
|
||||
version = "unstable-2022-03-07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bennofs";
|
||||
repo = "nix-index";
|
||||
rev = "f09548f66790d2d7d53f07ad2af62993d7cabb08";
|
||||
sha256 = "sha256-xIJCzEHQJ2kHRbT4Ejrb5R5e/VqjKrklV7XneZIiyUg=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-2Yhnacsx8EWsfZfcfKhV687cblyFDmsfdqGZoK6Lulo=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ openssl curl ]
|
||||
++ lib.optional stdenv.isDarwin Security;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/etc/profile.d
|
||||
cp ./command-not-found.sh $out/etc/profile.d/command-not-found.sh
|
||||
substituteInPlace $out/etc/profile.d/command-not-found.sh \
|
||||
--replace "@out@" "$out"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A files database for nixpkgs";
|
||||
homepage = "https://github.com/bennofs/nix-index";
|
||||
license = with licenses; [ bsd3 ];
|
||||
maintainers = with maintainers; [ bennofs ncfavier ];
|
||||
};
|
||||
}
|
||||
14
pkgs/tools/package-management/nix-index/wrapper.nix
Normal file
14
pkgs/tools/package-management/nix-index/wrapper.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ lib, symlinkJoin, nix-index-unwrapped, makeWrapper, nix }:
|
||||
|
||||
symlinkJoin {
|
||||
inherit (nix-index-unwrapped) name meta;
|
||||
|
||||
paths = [ nix-index-unwrapped ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/nix-index \
|
||||
--prefix PATH : ${lib.makeBinPath [ nix ]}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue