Refactor packages
This commit is contained in:
parent
7335b33553
commit
600e4c59ca
2 changed files with 31 additions and 28 deletions
29
packages.nix
29
packages.nix
|
@ -1,32 +1,5 @@
|
||||||
{ system, pkgs }:
|
{ system, pkgs }:
|
||||||
|
|
||||||
{
|
{
|
||||||
cliclick = pkgs.stdenv.mkDerivation {
|
cliclick = import ./packages/cliclick.nix { inherit system pkgs; };
|
||||||
pname = "cliclick";
|
|
||||||
version = "5.0.1";
|
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "BlueM";
|
|
||||||
repo = "cliclick";
|
|
||||||
rev = "79a49ff25f550fda5b2a1806366aa9d7facc46f3";
|
|
||||||
sha256 = "Wj1niLXCwBYTsXB2Qkdvs85BJD7uRqGIerCTjhS20ZQ=";
|
|
||||||
fetchSubmodules = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-include cliclick_Prefix.pch -I Actions -I .";
|
|
||||||
|
|
||||||
buildInputs = (with pkgs; [
|
|
||||||
perl
|
|
||||||
]) ++ (with pkgs.darwin.apple_sdk.frameworks; [
|
|
||||||
Carbon
|
|
||||||
Cocoa
|
|
||||||
Foundation
|
|
||||||
IOKit
|
|
||||||
]);
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp cliclick $out/bin
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
30
packages/cliclick.nix
Normal file
30
packages/cliclick.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ system, pkgs }:
|
||||||
|
|
||||||
|
pkgs.stdenv.mkDerivation {
|
||||||
|
pname = "cliclick";
|
||||||
|
version = "5.0.1";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "BlueM";
|
||||||
|
repo = "cliclick";
|
||||||
|
rev = "79a49ff25f550fda5b2a1806366aa9d7facc46f3";
|
||||||
|
sha256 = "Wj1niLXCwBYTsXB2Qkdvs85BJD7uRqGIerCTjhS20ZQ=";
|
||||||
|
fetchSubmodules = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = "-include cliclick_Prefix.pch -I Actions -I .";
|
||||||
|
|
||||||
|
buildInputs = (with pkgs; [
|
||||||
|
perl
|
||||||
|
]) ++ (with pkgs.darwin.apple_sdk.frameworks; [
|
||||||
|
Carbon
|
||||||
|
Cocoa
|
||||||
|
Foundation
|
||||||
|
IOKit
|
||||||
|
]);
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp cliclick $out/bin
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue