about summary refs log tree commit diff
path: root/pkgs/servers/http/pshs
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2017-03-10 01:20:22 +0200
committerTuomas Tynkkynen <tuomas@tuxera.com>2017-03-10 01:20:22 +0200
commitfe20a3275154c6425cbb63434a7e2f98f65804f6 (patch)
treef145b9ef3eb7d0e847e8a354e9640314403eb35b /pkgs/servers/http/pshs
parent74f92e95562c1dea4791c648fe4a4d9a70b2fd2a (diff)
downloadnixlib-fe20a3275154c6425cbb63434a7e2f98f65804f6.tar
nixlib-fe20a3275154c6425cbb63434a7e2f98f65804f6.tar.gz
nixlib-fe20a3275154c6425cbb63434a7e2f98f65804f6.tar.bz2
nixlib-fe20a3275154c6425cbb63434a7e2f98f65804f6.tar.lz
nixlib-fe20a3275154c6425cbb63434a7e2f98f65804f6.tar.xz
nixlib-fe20a3275154c6425cbb63434a7e2f98f65804f6.tar.zst
nixlib-fe20a3275154c6425cbb63434a7e2f98f65804f6.zip
pshs: 0.3 -> 0.3.1, fix source location
Diffstat (limited to 'pkgs/servers/http/pshs')
-rw-r--r--pkgs/servers/http/pshs/default.nix21
1 files changed, 12 insertions, 9 deletions
diff --git a/pkgs/servers/http/pshs/default.nix b/pkgs/servers/http/pshs/default.nix
index b9a42b4a5f61..38ab4bd3187d 100644
--- a/pkgs/servers/http/pshs/default.nix
+++ b/pkgs/servers/http/pshs/default.nix
@@ -1,24 +1,27 @@
-{ stdenv, fetchurl, pkgconfig, libevent, file, qrencode, miniupnpc }:
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libevent, file, qrencode, miniupnpc }:
 
-let
-  version = "0.3";
-in stdenv.mkDerivation {
+stdenv.mkDerivation rec {
   name = "pshs-${version}";
+  version = "0.3.1";
 
-  src = fetchurl {
-    url = "https://www.bitbucket.org/mgorny/pshs/downloads/pshs-${version}.tar.bz2";
-    sha256 = "0qvy1m9jmbjhbihs1qr9nasbaajl3n0x8bgz1vw9xvpkqymx5i63";
+  src = fetchFromGitHub {
+    owner = "mgorny";
+    repo = "pshs";
+    rev = "v${version}";
+    sha256 = "18mhxdjlyr21gghzkrrlp0imicb6bqf741p0a21c2rkvs4bv8c1w";
   };
 
-  buildInputs = [ pkgconfig libevent file qrencode miniupnpc ];
+  nativeBuildInputs = [ autoreconfHook pkgconfig ];
+  buildInputs = [ libevent file qrencode miniupnpc ];
 
   # SSL requires libevent at 2.1 with ssl support
   configureFlags = "--disable-ssl";
 
   meta = {
     description = "Pretty small HTTP server - a command-line tool to share files";
-    homepage = "https://bitbucket.org/mgorny/pshs/";
+    homepage = "https://github.com/mgorny/pshs";
     license = stdenv.lib.licenses.bsd3;
     maintainers = [ stdenv.lib.maintainers.eduarrrd ];
+    platforms = stdenv.lib.platforms.linux;
   };
 }