Compare commits
3 Commits
53bf019e26
...
e44c957573
| Author | SHA1 | Date | |
|---|---|---|---|
| e44c957573 | |||
| 03f6a67a0a | |||
| 12a5095325 |
41
pkgs/fcitx5-toki-pona/default.nix
Normal file
41
pkgs/fcitx5-toki-pona/default.nix
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{ stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, kdePackages
|
||||||
|
, python3
|
||||||
|
, libime
|
||||||
|
, lib
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "fcitx5-toki-pona";
|
||||||
|
version = "git";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "msyds";
|
||||||
|
repo = "fcitx5-toki-pona";
|
||||||
|
rev = "4b4314d642c647bc714c8876460b6779facda89c";
|
||||||
|
# rev = "icons";
|
||||||
|
hash = "sha256-5Keg+7AYkELYAlJkPszcjHgJ6TwBxnwNd3cpxSOEbGc=";
|
||||||
|
};
|
||||||
|
# src = /home/msyds/git/fcitx5-toki-pona;
|
||||||
|
buildInputs = [
|
||||||
|
kdePackages.fcitx5-chinese-addons
|
||||||
|
];
|
||||||
|
nativeBuildInputs = [
|
||||||
|
python3
|
||||||
|
libime
|
||||||
|
];
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
python3 combine.py
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
install -Dm644 -t $out/share/fcitx5/table table/*
|
||||||
|
install -Dm644 -t $out/share/fcitx5/inputmethod confs/*
|
||||||
|
find icons -name '*.png' -exec install -Dm644 {} "$out/share/{}" \;
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
}
|
||||||
30
pkgs/progressbar/default.nix
Normal file
30
pkgs/progressbar/default.nix
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{ stdenv
|
||||||
|
, ncurses
|
||||||
|
, fetchFromGitHub
|
||||||
|
, breakpointHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "progressbar";
|
||||||
|
version = "ac56232";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "doches";
|
||||||
|
repo = "progressbar";
|
||||||
|
rev = "ac56232610abf58cc2db2bc86efc8fcba7dfe8c2";
|
||||||
|
hash = "sha256-fgVIQAAtL5wSuWhGSKOTmlS2gvigInDqzfpILtGplLM";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [
|
||||||
|
ncurses.dev
|
||||||
|
breakpointHook
|
||||||
|
];
|
||||||
|
buildInputs = [
|
||||||
|
ncurses
|
||||||
|
];
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
install -Dm644 -t $out/lib libprogressbar.{so,a}
|
||||||
|
install -Dm644 -t $dev/include/progressbar include/progressbar/*.h
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user