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
51
pkgs/tools/misc/trash-cli/default.nix
Normal file
51
pkgs/tools/misc/trash-cli/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib, fetchFromGitHub, python3Packages }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "trash-cli";
|
||||
version = "0.22.4.16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "andreafrancia";
|
||||
repo = "trash-cli";
|
||||
rev = version;
|
||||
sha256 = "0j8iwr6cdc24gp5raxrq5483d7sfsyi8sy947w4hr2sc4j738dg5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ python3Packages.psutil ];
|
||||
|
||||
checkInputs = with python3Packages; [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
# Create a home directory with a test file.
|
||||
HOME="$(mktemp -d)"
|
||||
touch "$HOME/deleteme"
|
||||
|
||||
# Verify that trash list is initially empty.
|
||||
[[ $($out/bin/trash-list) == "" ]]
|
||||
|
||||
# Trash a test file and verify that it shows up in the list.
|
||||
$out/bin/trash "$HOME/deleteme"
|
||||
[[ $($out/bin/trash-list) == *" $HOME/deleteme" ]]
|
||||
|
||||
# Empty the trash and verify that it is empty.
|
||||
$out/bin/trash-empty
|
||||
[[ $($out/bin/trash-list) == "" ]]
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/andreafrancia/trash-cli";
|
||||
description = "Command line tool for the desktop trash can";
|
||||
maintainers = [ maintainers.rycee ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.gpl2;
|
||||
mainProgram = "trash";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue