Skip to content

Commit

Permalink
restorething: init at 0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Jan 31, 2018
1 parent 499b3ed commit 10ae86c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/applications/networking/syncthing/restorething.nix
@@ -0,0 +1,33 @@
{ stdenv, lib, fetchFromGitHub, python2Packages, removeReferencesTo }:

with python2Packages;

buildPythonApplication rec {
name = "restorething-${version}";
version = "0.2.5";

src = fetchFromGitHub {
owner = "madmickstar";
repo = "restorething";
rev = "v${version}";
sha256 = "1q9c5mfni8gg3iagmbw5ka96cp7bkk1vy8bvn1xmw21arz4zwz27";
};

postInstall = ''
mkdir -p $out/bin
makeWrapper ${python.interpreter} $out/bin/restorething \
--argv0 restorething \
--prefix PYTHONPATH : $out/${python.sitePackages} \
--add-flags "-m restorething"
'';

doCheck = false; # no tests available

meta = with stdenv.lib; {
description = "Restore tool for syncthing ";
homepage = https://github.com/madmickstar/restorething;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
platforms = platforms.unix;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -17237,6 +17237,8 @@ with pkgs;

syncplay = callPackage ../applications/networking/syncplay { };

restorething = callPackage ../applications/networking/syncthing/restorething.nix { };

syncthing = callPackage ../applications/networking/syncthing { };

syncthing012 = callPackage ../applications/networking/syncthing012 { };
Expand Down

0 comments on commit 10ae86c

Please sign in to comment.