pkgs: Add package for cliphist
This commit is contained in:
parent
d1c2006e24
commit
dcbba5b66e
7 changed files with 79 additions and 0 deletions
5
overlays/modifications/cliphist.nix
Normal file
5
overlays/modifications/cliphist.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{outputs, ...}: final: prev: let
|
||||||
|
inherit (prev.stdenv.hostPlatform) system;
|
||||||
|
in {
|
||||||
|
inherit (outputs.packages."${system}") cliphist;
|
||||||
|
}
|
||||||
|
|
@ -10,6 +10,7 @@ in
|
||||||
./wshowkeys.nix
|
./wshowkeys.nix
|
||||||
./QQ.nix
|
./QQ.nix
|
||||||
./helix.nix
|
./helix.nix
|
||||||
|
./cliphist.nix
|
||||||
]
|
]
|
||||||
|> map (file: import file args)
|
|> map (file: import file args)
|
||||||
|> (overlays: (lib.composeManyExtensions overlays) final prev)
|
|> (overlays: (lib.composeManyExtensions overlays) final prev)
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,27 @@
|
||||||
},
|
},
|
||||||
"version": "ee6c8a19de97a244cf33f618678fe89bd0d3e38c"
|
"version": "ee6c8a19de97a244cf33f618678fe89bd0d3e38c"
|
||||||
},
|
},
|
||||||
|
"cliphist": {
|
||||||
|
"cargoLocks": null,
|
||||||
|
"date": "2025-06-07",
|
||||||
|
"extract": null,
|
||||||
|
"name": "cliphist",
|
||||||
|
"passthru": null,
|
||||||
|
"pinned": false,
|
||||||
|
"src": {
|
||||||
|
"deepClone": false,
|
||||||
|
"fetchSubmodules": false,
|
||||||
|
"leaveDotGit": false,
|
||||||
|
"name": null,
|
||||||
|
"owner": "sentriz",
|
||||||
|
"repo": "cliphist",
|
||||||
|
"rev": "f49bd905cff72d32d62c209224353865436f9a13",
|
||||||
|
"sha256": "sha256-waD4AIAAlorW+UBvHKFc5dm/CqP0Fw3pygYqPX5cYNc=",
|
||||||
|
"sparseCheckout": [],
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"version": "f49bd905cff72d32d62c209224353865436f9a13"
|
||||||
|
},
|
||||||
"dioxionary": {
|
"dioxionary": {
|
||||||
"cargoLocks": {
|
"cargoLocks": {
|
||||||
"./Cargo.lock": [
|
"./Cargo.lock": [
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,18 @@
|
||||||
};
|
};
|
||||||
date = "2025-06-09";
|
date = "2025-06-09";
|
||||||
};
|
};
|
||||||
|
cliphist = {
|
||||||
|
pname = "cliphist";
|
||||||
|
version = "f49bd905cff72d32d62c209224353865436f9a13";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "sentriz";
|
||||||
|
repo = "cliphist";
|
||||||
|
rev = "f49bd905cff72d32d62c209224353865436f9a13";
|
||||||
|
fetchSubmodules = false;
|
||||||
|
sha256 = "sha256-waD4AIAAlorW+UBvHKFc5dm/CqP0Fw3pygYqPX5cYNc=";
|
||||||
|
};
|
||||||
|
date = "2025-06-07";
|
||||||
|
};
|
||||||
dioxionary = {
|
dioxionary = {
|
||||||
pname = "dioxionary";
|
pname = "dioxionary";
|
||||||
version = "4db80d458ff7494967c94ebb1db596abba0775b2";
|
version = "4db80d458ff7494967c94ebb1db596abba0775b2";
|
||||||
|
|
|
||||||
35
pkgs/cliphist.nix
Normal file
35
pkgs/cliphist.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
srcs,
|
||||||
|
cliphist,
|
||||||
|
imagemagick,
|
||||||
|
wl-clipboard,
|
||||||
|
fuzzel,
|
||||||
|
gawk,
|
||||||
|
gnugrep,
|
||||||
|
lib,
|
||||||
|
makeWrapper,
|
||||||
|
}: let
|
||||||
|
inherit (srcs.cliphist) src date version;
|
||||||
|
in
|
||||||
|
cliphist.overrideAttrs (final: prev: {
|
||||||
|
inherit src;
|
||||||
|
version = "unstable-${date}-git${version}";
|
||||||
|
vendorHash = "sha256-No8d9ztepBO+fgF2XkEf/tyCPDAD57rBkzA8iVyNUmw=";
|
||||||
|
buildInputs =
|
||||||
|
(prev.buildInputs or [])
|
||||||
|
++ [
|
||||||
|
makeWrapper
|
||||||
|
];
|
||||||
|
postInstall = ''
|
||||||
|
cp -t $out/bin/ $src/contrib/*
|
||||||
|
rm $out/bin/cliphist.service
|
||||||
|
wrapProgram $out/bin/cliphist-fuzzel-img \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [
|
||||||
|
imagemagick
|
||||||
|
wl-clipboard
|
||||||
|
fuzzel
|
||||||
|
gawk
|
||||||
|
gnugrep
|
||||||
|
]}
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
|
@ -22,6 +22,7 @@ in
|
||||||
OuterWildsTextAdventure = callPackage ./OuterWildsTextAdventure.nix {};
|
OuterWildsTextAdventure = callPackage ./OuterWildsTextAdventure.nix {};
|
||||||
QQ = callPackage ./QQ.nix {};
|
QQ = callPackage ./QQ.nix {};
|
||||||
editor-runtime = callPackage ./editor-runtime.nix {};
|
editor-runtime = callPackage ./editor-runtime.nix {};
|
||||||
|
cliphist = callPackage ./cliphist.nix {};
|
||||||
|
|
||||||
noto-serif-cjk = callPackage ./noto-serif-cjk.nix {};
|
noto-serif-cjk = callPackage ./noto-serif-cjk.nix {};
|
||||||
noto-sans-cjk = callPackage ./noto-sans-cjk.nix {};
|
noto-sans-cjk = callPackage ./noto-sans-cjk.nix {};
|
||||||
|
|
|
||||||
|
|
@ -42,3 +42,7 @@ fetch.github = "DreamMaoMao/wshowkeys"
|
||||||
[OuterWildsTextAdventure]
|
[OuterWildsTextAdventure]
|
||||||
src.git = "https://github.com/top-mind/OuterWildsTextAdventureWeb.git"
|
src.git = "https://github.com/top-mind/OuterWildsTextAdventureWeb.git"
|
||||||
fetch.github = "top-mind/OuterWildsTextAdventureWeb"
|
fetch.github = "top-mind/OuterWildsTextAdventureWeb"
|
||||||
|
|
||||||
|
[cliphist]
|
||||||
|
src.git = "https://github.com/sentriz/cliphist.git"
|
||||||
|
fetch.github = "sentriz/cliphist"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue