Merge pull request #53650 from Ma27/update-shmig
shmig: 2017-07-24 -> 1.0.0
This commit is contained in:
commit
c7001df243
|
@ -1,17 +1,18 @@
|
||||||
{ stdenv, fetchFromGitHub
|
{ stdenv, fetchFromGitHub
|
||||||
, withMySQL ? false, withPSQL ? false, withSQLite ? false
|
, withMySQL ? true, withPSQL ? false, withSQLite ? false
|
||||||
, mysql, postgresql, sqlite, gawk, which
|
, mysql, postgresql, sqlite, gawk
|
||||||
, lib
|
, lib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "shmig-2017-07-24";
|
name = "shmig-${version}";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mbucc";
|
owner = "mbucc";
|
||||||
repo = "shmig";
|
repo = "shmig";
|
||||||
rev = "aff54e03d13f8f95b422cf898505490a56152a4a";
|
rev = "v${version}";
|
||||||
sha256 = "08q94dka5yqkzkis3w7j1q8kc7d3kk7mb2drx8ms59jcqvp847j3";
|
sha256 = "15ry1d51d6dlzzzhck2x57wrq48vs4n9pp20bv2sz6nk92fva5l5";
|
||||||
};
|
};
|
||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" ];
|
||||||
|
@ -23,8 +24,7 @@ stdenv.mkDerivation {
|
||||||
--replace "\`which mysql\`" "${lib.optionalString withMySQL "${mysql.client}/bin/mysql"}" \
|
--replace "\`which mysql\`" "${lib.optionalString withMySQL "${mysql.client}/bin/mysql"}" \
|
||||||
--replace "\`which psql\`" "${lib.optionalString withPSQL "${postgresql}/bin/psql"}" \
|
--replace "\`which psql\`" "${lib.optionalString withPSQL "${postgresql}/bin/psql"}" \
|
||||||
--replace "\`which sqlite3\`" "${lib.optionalString withSQLite "${sqlite}/bin/sqlite3"}" \
|
--replace "\`which sqlite3\`" "${lib.optionalString withSQLite "${sqlite}/bin/sqlite3"}" \
|
||||||
--replace "awk" "${gawk}/bin/awk" \
|
--replace "awk" "${gawk}/bin/awk"
|
||||||
--replace "which" "${which}/bin/which"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
|
Loading…
Reference in New Issue