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
63
pkgs/applications/misc/imag/default.nix
Normal file
63
pkgs/applications/misc/imag/default.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{ lib, stdenv
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, llvmPackages
|
||||
, openssl
|
||||
, pkg-config
|
||||
, installShellFiles
|
||||
, Security
|
||||
, gitMinimal
|
||||
, util-linuxMinimal
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "imag";
|
||||
version = "0.10.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matthiasbeyer";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0f9915f083z5qqcxyavj0w6m973c8m1x7kfb89pah5agryy5mkaq";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
||||
buildInputs = [ openssl ]
|
||||
++ lib.optional stdenv.isDarwin Security;
|
||||
checkInputs = [ gitMinimal util-linuxMinimal ];
|
||||
|
||||
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
||||
|
||||
cargoSha256 = "1vnrc72g2271i2p847z30kplxmdpi60n3dzpw0s7dahg33g14ai6";
|
||||
|
||||
checkPhase = ''
|
||||
export HOME=$TMPDIR
|
||||
git config --global user.email "nobody@example.com"
|
||||
git config --global user.name "Nobody"
|
||||
|
||||
# UI tests uses executables directly, so we need to build them before
|
||||
# launching the tests
|
||||
cargo build
|
||||
'' + (
|
||||
# CLI uses the presence of a controlling TTY to check if arguments are
|
||||
# passed in stdin, or in the command-line, so we use script to create
|
||||
# a PTY for us.
|
||||
if !stdenv.isDarwin then ''
|
||||
script -qfec "cargo test --workspace"
|
||||
'' else ''
|
||||
script -q "cargo test --workspace"
|
||||
''
|
||||
);
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion target/imag.{bash,fish} --zsh target/_imag
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Commandline personal information management suite";
|
||||
homepage = "https://imag-pim.org/";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = with maintainers; [ Br1ght0ne minijackson ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue