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
45
pkgs/os-specific/darwin/khd/default.nix
Normal file
45
pkgs/os-specific/darwin/khd/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, Carbon, Cocoa }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "khd";
|
||||
version = "3.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "koekeishiya";
|
||||
repo = "khd";
|
||||
rev = "v${version}";
|
||||
sha256 = "0nzfhknv1s71870w2dk9dy56a3g5zsbjphmfrz0vsvi438g099r4";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fixes build issues, remove with >3.0.0
|
||||
(fetchpatch {
|
||||
url = "https://github.com/koekeishiya/khd/commit/4765ae0b4c7d4ca56319dc92ff54393cd9e03fbc.patch";
|
||||
sha256 = "0kvf5hxi5bf6pf125qib7wn7hys0ag66zzpp4srj1qa87lxyf7np";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ Carbon Cocoa ];
|
||||
|
||||
buildPhase = ''
|
||||
make install
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp bin/khd $out/bin/khd
|
||||
|
||||
mkdir -p $out/Library/LaunchDaemons
|
||||
cp ${./org.nixos.khd.plist} $out/Library/LaunchDaemons/org.nixos.khd.plist
|
||||
substituteInPlace $out/Library/LaunchDaemons/org.nixos.khd.plist --subst-var out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple modal hotkey daemon for OSX";
|
||||
homepage = "https://github.com/koekeishiya/khd";
|
||||
downloadPage = "https://github.com/koekeishiya/khd/releases";
|
||||
platforms = platforms.darwin;
|
||||
maintainers = with maintainers; [ lnl7 ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
33
pkgs/os-specific/darwin/khd/org.nixos.khd.plist
Normal file
33
pkgs/os-specific/darwin/khd/org.nixos.khd.plist
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>org.nixos.khd</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>@out@/bin/khd</string>
|
||||
</array>
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
<key>ProcessType</key>
|
||||
<string>Interactive</string>
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>@out@/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin</string>
|
||||
</dict>
|
||||
<key>Sockets</key>
|
||||
<dict>
|
||||
<key>Listeners</key>
|
||||
<dict>
|
||||
<key>SockServiceName</key>
|
||||
<string>3021</string>
|
||||
<key>SockType</key>
|
||||
<string>dgram</string>
|
||||
<key>SockFamily</key>
|
||||
<string>IPv4</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
Loading…
Add table
Add a link
Reference in a new issue