2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, xsel, curl, fetchFromGitLab, makeWrapper}:
|
2019-03-09 18:44:07 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "0x0";
|
2019-03-09 18:44:07 +00:00
|
|
|
version = "2018-06-24";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "somasis";
|
|
|
|
repo = "scripts";
|
|
|
|
rev = "70422c83b2ac5856559b0ddaf6e2dc3dbef40dee";
|
|
|
|
sha256 = "1qpylyxrisy3p2lyirfarfj5yzrdjgsgxwf8gqwljpcjn207hr72";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 0x0 $out/bin/0x0
|
|
|
|
|
|
|
|
patchShebangs $out/bin/0x0
|
|
|
|
wrapProgram $out/bin/0x0 \
|
2021-01-15 09:19:50 +00:00
|
|
|
--prefix PATH : '${lib.makeBinPath [ curl xsel ]}'
|
2019-03-09 18:44:07 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-03-09 18:44:07 +00:00
|
|
|
description = "A client for 0x0.st";
|
|
|
|
homepage = "https://gitlab.com/somasis/scripts/";
|
|
|
|
maintainers = [ maintainers.ar1a ];
|
|
|
|
license = licenses.unlicense;
|
|
|
|
};
|
|
|
|
}
|