push: init at 1.0.0

This commit is contained in:
tv 2015-10-15 02:00:32 +02:00
parent 521f74a4fe
commit 7eb564d0ef
4 changed files with 54 additions and 0 deletions

View File

@ -9,6 +9,10 @@ in
subdirs // rec {
push = pkgs'.callPackage ./push {
inherit (subdirs) get jq;
};
execve = name: { filename, argv, envp ? {}, destination ? "" }:
writeC name { inherit destination; } ''
#include <unistd.h>

View File

@ -0,0 +1,48 @@
{ fetchgit, lib, stdenv
, coreutils
, get
, git
, gnused
, jq
, openssh
, parallel
, ... }:
stdenv.mkDerivation {
name = "push-1.0.0";
src = fetchgit {
url = http://cgit.cd.retiolum/push;
rev = "513da89fe50b3bad3d758855f5622c4508977e4a";
sha256 = "6124e1d4d4ef57455e2f06891e06fb01d3786846efaf9b79e3176d89988e1b4e";
};
phases = [
"unpackPhase"
"installPhase"
];
installPhase =
let
path = lib.makeSearchPath "bin" [
coreutils
get
git
gnused
jq
openssh
parallel
];
in
''
mkdir -p $out/bin
sed \
'1s,.*,&\nPATH=${path},' \
< ./push \
> $out/bin/push
chmod +x $out/bin/push
'';
}

View File

@ -89,6 +89,7 @@ with lib;
pavucontrol
posix_man_pages
pssh
push
qrencode
sxiv
texLive

View File

@ -35,6 +35,7 @@ let
nixos-infest = {};
nixpkgs = {};
painload = {};
push = {};
quipper = {};
regfish = {};
stockholm = {