diff options
author | Georges Dubus <georges.dubus@compiletoi.net> | 2015-01-14 17:38:26 +0100 |
---|---|---|
committer | Georges Dubus <georges.dubus@compiletoi.net> | 2015-01-14 17:38:47 +0100 |
commit | c64b29497040db23bd9cce7d0b0c76a241853a0f (patch) | |
tree | e029b6238b01beee4df07ffa158f40475c0b6446 /pkgs/tools/backup | |
parent | 0ab270770bceb681836767d8b09216afb0423b30 (diff) | |
download | nixlib-c64b29497040db23bd9cce7d0b0c76a241853a0f.tar nixlib-c64b29497040db23bd9cce7d0b0c76a241853a0f.tar.gz nixlib-c64b29497040db23bd9cce7d0b0c76a241853a0f.tar.bz2 nixlib-c64b29497040db23bd9cce7d0b0c76a241853a0f.tar.lz nixlib-c64b29497040db23bd9cce7d0b0c76a241853a0f.tar.xz nixlib-c64b29497040db23bd9cce7d0b0c76a241853a0f.tar.zst nixlib-c64b29497040db23bd9cce7d0b0c76a241853a0f.zip |
fetchFromGitHub: add option for custom name
This is necessary when the rev name contains a "/"
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r-- | pkgs/tools/backup/bareos/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/tools/backup/bareos/default.nix b/pkgs/tools/backup/bareos/default.nix index 24dfa795f1dd..87c04954f6bf 100644 --- a/pkgs/tools/backup/bareos/default.nix +++ b/pkgs/tools/backup/bareos/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchzip, pkgconfig, nettools, gettext, readline, openssl, python +{ stdenv, fetchFromGitHub, pkgconfig, nettools, gettext, readline, openssl, python , ncurses ? null , sqlite ? null, postgresql ? null, mysql ? null, libcap ? null , zlib ? null, lzo ? null, acl ? null, ceph ? null @@ -11,8 +11,11 @@ stdenv.mkDerivation rec { name = "bareos-${version}"; version = "14.2.2"; - src = fetchzip { - url = "https://github.com/bareos/bareos/archive/Release/${version}.tar.gz"; + src = fetchFromGitHub { + owner = "bareos"; + repo = "bareos"; + rev = "Release/${version}"; + name = "${name}-src"; sha256 = "12605jibvj6kdp15s8jpzb9fw1mfm53npf8ib2jfn1r4hvhdrl4j"; }; |