nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 fuse,
5 python3Packages,
6}:
7
8python3Packages.buildPythonApplication rec {
9 pname = "acd-cli";
10 version = "0.3.2";
11 format = "setuptools";
12
13 doCheck = false;
14
15 src = fetchFromGitHub {
16 owner = "yadayada";
17 repo = "acd_cli";
18 tag = version;
19 hash = "sha256-132CW5EcsgDZOeauBpNyXoFS2Q5rKPqqHIoIKobJDig=";
20 };
21
22 dependencies = with python3Packages; [
23 appdirs
24 colorama
25 python-dateutil
26 fusepy
27 requests
28 requests-toolbelt
29 setuptools
30 sqlalchemy
31 ];
32
33 makeWrapperArgs = [ "--prefix LIBFUSE_PATH : ${lib.getLib fuse}/lib/libfuse.so" ];
34
35 postFixup = ''
36 function lnOverBin() {
37 rm -f $out/bin/{$2,.$2-wrapped}
38 ln -s $out/bin/$1 $out/bin/$2
39 }
40 lnOverBin acd_cli.py acd-cli
41 lnOverBin acd_cli.py acd_cli
42 lnOverBin acd_cli.py acdcli
43 '';
44
45 meta = {
46 description = "Command line interface and FUSE filesystem for Amazon Cloud Drive";
47 homepage = "https://github.com/yadayada/acd_cli";
48 license = lib.licenses.gpl2;
49 };
50}