
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
820 B
Nix
29 lines
820 B
Nix
{ lib, stdenv, fetchMavenArtifact }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "redshift-jdbc";
|
|
version = "2.1.0.3";
|
|
|
|
src = fetchMavenArtifact {
|
|
artifactId = "redshift-jdbc42";
|
|
groupId = "com.amazon.redshift";
|
|
sha256 = "sha256-TO/JXh/pZ7tUZGfHqkzgZx18gLnISvnPVyGavzFv6vo=";
|
|
inherit version;
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -m444 -D $src/share/java/redshift-jdbc42-${version}.jar $out/share/java/redshift-jdbc42.jar
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/aws/amazon-redshift-jdbc-driver/";
|
|
description =
|
|
"JDBC 4.2 driver for Amazon Redshift allowing Java programs to connect to a Redshift database";
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ sir4ur0n ];
|
|
};
|
|
}
|