fpart: 1.0.0 -> 1.1.0

Also use `fetchFromGitHub` for fetch so we can use https.
This commit is contained in:
worldofpeace 2018-11-21 17:05:20 -05:00
parent 0925c482c8
commit eeec5612b4

View File

@ -1,14 +1,18 @@
{ stdenv, fetchurl }:
{ stdenv, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation rec {
name = "fpart-${version}";
version = "1.0.0";
version = "1.1.0";
src = fetchurl {
url = "http://contribs.martymac.org/fpart/${name}.tar.gz";
sha256 = "1p0ajmry18lcg82znfp8nxs4w3izic775l7df08hywlq4vfa66pg";
src = fetchFromGitHub {
owner = "martymac";
repo = "fpart";
rev = name;
sha256 = "0h3mqc1xj5j2z8s8g3pvvpbjs6x74dj8niyh3p2ymla35kbzskf4";
};
nativeBuildInputs = [ autoreconfHook ];
postInstall = ''
sed "s|^FPART_BIN=.*|FPART_BIN=\"$out/bin/fpart\"|" \
-i "$out/bin/fpsync"