From 582374ea9edb14bfc96a9b86603f3212b64c5451 Mon Sep 17 00:00:00 2001 From: Aria Edmonds Date: Sun, 10 Mar 2019 05:44:07 +1100 Subject: [PATCH] _0x0: init at 2018-06-24 --- pkgs/tools/misc/0x0/default.nix | 30 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/misc/0x0/default.nix diff --git a/pkgs/tools/misc/0x0/default.nix b/pkgs/tools/misc/0x0/default.nix new file mode 100644 index 000000000000..83e3842252d3 --- /dev/null +++ b/pkgs/tools/misc/0x0/default.nix @@ -0,0 +1,30 @@ +{ stdenv, pkgs, xsel, curl, fetchFromGitLab, makeWrapper}: + +stdenv.mkDerivation rec { + name = "0x0-${version}"; + 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 \ + --prefix PATH : '${stdenv.lib.makeBinPath [ curl xsel ]}' + ''; + + meta = with stdenv.lib; { + description = "A client for 0x0.st"; + homepage = "https://gitlab.com/somasis/scripts/"; + maintainers = [ maintainers.ar1a ]; + license = licenses.unlicense; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f0a9c65f57ab..c0bf3f4b8fa8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -410,6 +410,8 @@ in ### TOOLS + _0x0 = callPackage ../tools/misc/0x0 { }; + _1password = callPackage ../applications/misc/1password { }; _9pfs = callPackage ../tools/filesystems/9pfs { };