skhd: use finalAttrs
pattern
This commit is contained in:
parent
a8b5053805
commit
684f3c72b4
|
@ -1,19 +1,29 @@
|
|||
{ lib, stdenv, fetchFromGitHub, Carbon, Cocoa }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, Carbon
|
||||
, Cocoa
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "skhd";
|
||||
version = "0.3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "koekeishiya";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "fnkWws/g4BdHKDRhqoCpdPFUavOHdk8R7h7H1dAdAYI=";
|
||||
repo = "skhd";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-fnkWws/g4BdHKDRhqoCpdPFUavOHdk8R7h7H1dAdAYI=";
|
||||
};
|
||||
|
||||
buildInputs = [ Carbon Cocoa ];
|
||||
buildInputs = [
|
||||
Carbon
|
||||
Cocoa
|
||||
];
|
||||
|
||||
makeFlags = [ "BUILD_PATH=$(out)/bin" ];
|
||||
makeFlags = [
|
||||
"BUILD_PATH=$(out)/bin"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/Library/LaunchDaemons
|
||||
|
@ -21,11 +31,11 @@ stdenv.mkDerivation rec {
|
|||
substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Simple hotkey daemon for macOS";
|
||||
homepage = "https://github.com/koekeishiya/skhd";
|
||||
platforms = platforms.darwin;
|
||||
maintainers = with maintainers; [ cmacrae lnl7 periklis khaneliman];
|
||||
license = licenses.mit;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ cmacrae lnl7 periklis khaneliman];
|
||||
platforms = lib.platforms.darwin;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue