diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-02-07 14:42:22 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-02-07 14:43:27 +0100 |
commit | c6e94f9fa0dd88ee4b8c0124b08ce787509c7301 (patch) | |
tree | 30d4fab2516427e004100d53fca38adc80c06e57 /pkgs/applications/misc/sc-im | |
parent | f91f99aff827e43c10373e393636e9af12c28f66 (diff) |
sc-im: fix download by using fetchFromGitHub
Otherwise the hashes would change periodically. Also refactor meta. /cc maintainer @matthiasbeyer.
Diffstat (limited to 'pkgs/applications/misc/sc-im')
-rw-r--r-- | pkgs/applications/misc/sc-im/default.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/applications/misc/sc-im/default.nix b/pkgs/applications/misc/sc-im/default.nix index 29f347522fa43..cb18278d1ed4b 100644 --- a/pkgs/applications/misc/sc-im/default.nix +++ b/pkgs/applications/misc/sc-im/default.nix @@ -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 }; } |