mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
sabiql: 1.15.1 -> 2.0.1 (#558377)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
rustc,
|
||||
graphviz,
|
||||
postgresql,
|
||||
sqlite,
|
||||
xdg-utils,
|
||||
makeBinaryWrapper,
|
||||
nix-update-script,
|
||||
@@ -13,16 +14,16 @@
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "sabiql";
|
||||
version = "1.15.1";
|
||||
version = "2.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "riii111";
|
||||
repo = "sabiql";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-vxkuYBakLzfZJyOPFD92kYB0QapfaLfwvw/La6kVQXY=";
|
||||
hash = "sha256-QKc53tMxz9/+5fnDdBvxAj/CPB/UE4uWQ3Kh1haTyAk=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-UN/3VFGZdjZjBGqCxgdiWUCuDS3p+3z/WqQ9CCwwQAA=";
|
||||
cargoHash = "sha256-ujT547EFdBxHWY6l1DDrTnMGAek26p3csGouJEk1Mwo=";
|
||||
|
||||
# Upstream use latest rust version need to patch use nixpkgs version
|
||||
postPatch = ''
|
||||
@@ -33,11 +34,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
makeBinaryWrapper
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
sqlite
|
||||
];
|
||||
|
||||
postInstall =
|
||||
let
|
||||
runtimePathDeps = [
|
||||
graphviz
|
||||
postgresql
|
||||
sqlite
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [ xdg-utils ];
|
||||
in
|
||||
|
||||
Reference in New Issue
Block a user