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
|
||||
, withMySQL ? false, withPSQL ? false, withSQLite ? false
|
||||
, mysql, postgresql, sqlite, gawk, which
|
||||
, withMySQL ? true, withPSQL ? false, withSQLite ? false
|
||||
, mysql, postgresql, sqlite, gawk
|
||||
, lib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "shmig-2017-07-24";
|
||||
stdenv.mkDerivation rec {
|
||||
name = "shmig-${version}";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mbucc";
|
||||
repo = "shmig";
|
||||
rev = "aff54e03d13f8f95b422cf898505490a56152a4a";
|
||||
sha256 = "08q94dka5yqkzkis3w7j1q8kc7d3kk7mb2drx8ms59jcqvp847j3";
|
||||
rev = "v${version}";
|
||||
sha256 = "15ry1d51d6dlzzzhck2x57wrq48vs4n9pp20bv2sz6nk92fva5l5";
|
||||
};
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
@ -23,8 +24,7 @@ stdenv.mkDerivation {
|
||||
--replace "\`which mysql\`" "${lib.optionalString withMySQL "${mysql.client}/bin/mysql"}" \
|
||||
--replace "\`which psql\`" "${lib.optionalString withPSQL "${postgresql}/bin/psql"}" \
|
||||
--replace "\`which sqlite3\`" "${lib.optionalString withSQLite "${sqlite}/bin/sqlite3"}" \
|
||||
--replace "awk" "${gawk}/bin/awk" \
|
||||
--replace "which" "${which}/bin/which"
|
||||
--replace "awk" "${gawk}/bin/awk"
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
|
Loading…
Reference in New Issue
Block a user