diff --git a/pkgs/by-name/dn/dnote/package.nix b/pkgs/by-name/dn/dnote/package.nix index 87e65f1f5cd0..2a4e15380060 100644 --- a/pkgs/by-name/dn/dnote/package.nix +++ b/pkgs/by-name/dn/dnote/package.nix @@ -15,20 +15,25 @@ buildGoModule rec { pname = "dnote"; - version = "0.15.1"; + version = "0.16.0"; src = fetchFromGitHub { owner = "dnote"; repo = "dnote"; tag = "cli-v${version}"; - hash = "sha256-2vVopuFf9bx8U3+U4wznC/9nlLtan+fU5v9HUCEI1R4="; + hash = "sha256-so86Pit8/JeO/qwoOCZp8gY/E/HwhiDi6nzye2AM33A="; }; + postPatch = '' + # This is not used and compile error + rm -rf pkg/e2e + ''; + npmDeps = fetchNpmDeps { inherit version src; pname = "${pname}-webui"; sourceRoot = "${src.name}/pkg/server/assets"; - hash = "sha256-gUr8ptPsE7uw/F52CZi1P2L7eLgGiELEz6tI+fwAN0I="; + hash = "sha256-yq55iO3Svqbjah9HdWfSicJISNEipxUkNDD1KJ7ZUhY="; }; overrideModAttrs = oldAttrs: { @@ -94,17 +99,14 @@ buildGoModule rec { postInstall = '' mv $out/bin/cli $out/bin/dnote-cli - mv $out/bin/migrate $out/bin/dnote-migrate mv $out/bin/server $out/bin/dnote-server - mv $out/bin/templates $out/bin/dnote-templates + mv $out/bin/schema $out/bin/dnote-schema mv $out/bin/watcher $out/bin/dnote-watcher ''; - checkFlags = [ - "-p 1" - ]; + checkFlags = [ "-p 1" ]; - vendorHash = "sha256-4mP5z3ZVlHYhItRjkbXvcOxVm6PuZ6viL2GHqzCH9tA="; + vendorHash = "sha256-PExF+1SWcCROmthzo1e8Y7zqhW780GufYe35l0FRhxY="; nativeInstallCheckInputs = [ versionCheckHook