1 { lib, stdenv, fetchFromGitHub, perl, AppKit, Cocoa, ScriptingBridge }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "ali-rantakari";
11 sha256 = "1d3rc03vgz32faj7qi18iiggxvxlqrj9lsk5jkpa9r1mcs5d89my";
14 buildInputs = [ perl Cocoa AppKit ScriptingBridge ];
16 patches = [ ./trash.diff ];
18 buildPhase = "make all docs";
22 mkdir -p $out/share/man/man1
23 install -m 0755 trash $out/bin
24 install -m 0444 trash.1 $out/share/man/man1
28 homepage = "https://github.com/ali-rantakari/trash";
29 description = "Small command-line program for OS X that moves files or
30 folders to the trash.";
31 platforms = lib.platforms.darwin;
32 license = lib.licenses.mit;