3
0
Fork 0
forked from mirrors/nixpkgs

sc-im: fix download by using fetchFromGitHub

Otherwise the hashes would change periodically.
Also refactor meta. /cc maintainer @matthiasbeyer.
This commit is contained in:
Vladimír Čunát 2016-02-07 14:42:22 +01:00
parent f91f99aff8
commit c6e94f9fa0

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, yacc, ncurses, libxml2 }:
{ stdenv, fetchFromGitHub, yacc, ncurses, libxml2 }:
let
version = "0.2.1";
@ -7,9 +7,11 @@ stdenv.mkDerivation rec {
name = "sc-im-${version}";
src = fetchurl {
url = "https://github.com/andmarti1424/sc-im/archive/v${version}.tar.gz";
sha256 = "08yks8grj5w434r81dy2knzbdhdnkc23r0d9v848mcl706xnjl6j";
src = fetchFromGitHub {
owner = "andmarti1424";
repo = "sc-im";
rev = "v${version}";
sha256 = "0v6b8xksvd12vmz198vik2ranyr5mhnp85hl9yxh9svibs7jxsbb";
};
buildInputs = [ yacc ncurses libxml2 ];
@ -28,12 +30,12 @@ stdenv.mkDerivation rec {
make install prefix=
'';
meta = {
meta = with stdenv.lib; {
homepage = "https://github.com/andmarti1424/sc-im";
description = "SC-IM - Spreadsheet Calculator Improvised - SC fork";
license = stdenv.lib.licenses.bsdOriginal;
maintainers = [ stdenv.lib.maintainers.matthiasbeyer ];
platforms = with stdenv.lib.platforms; linux; # Cannot test others
license = licenses.bsdOriginal;
maintainers = [ maintainers.matthiasbeyer ];
platforms = platforms.linux; # Cannot test others
};
}